Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] No folders in ~/

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

[SOLVED] No folders in ~/

#1 Post by pawRoot »

This isn't the first time happening to me, and i dont know why but, there is no folders like Pictures, Videos etc. in my home folder. Most of the time reinstall helps, but why the hell is this happening?

Image
https://i.imgur.com/qd8vDoL.png

It's a fresh install of i3, on Debian netinst (standard system utilities selected only).
I made the whole install with this:

Code: Select all

#!/bin/sh

sudo dpkg --add-architecture i386

sudo apt update && sudo apt upgrade -y

### installing packages
sudo apt install -f -y i3 suckless-tools xorg software-properties-common \
                          chromium fonts-font-awesome fonts-roboto devscripts \
                          file-roller pcmanfm leafpad pulseaudio pavucontrol \
                          alsa-utils gdebi neofetch clipit feh \
                          build-essential gtk2-engines-murrine gtk2-engines \
                          vim ranger caca-utils highlight atool w3m poppler-utils \
                          mediainfo compton python-pip libcanberra-gtk-module \
                          rxvt-unicode-256color curl wget apt-transport-https dirmngr \
                          numix-icon-theme scrot ristretto

### creating dirs
mkdir ~/.config/
mkdir ~/.themes/
mkdir ~/.fonts/

### configs
rsync -a .xinitrc ~/
rsync -a .Xresources ~/
rsync -a .config/ ~/.config/
#rsync -a .gtkrc-2.0 ~/

### wallpaper
sudo rsync -a wallpaper.png /usr/share/wallpapers/
Last edited by pawRoot on 2018-01-12 23:08, edited 1 time in total.

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: No folders in ~/

#2 Post by dilberts_left_nut »

pawRoot wrote:### creating dirs
mkdir ~/.config/
mkdir ~/.themes/
mkdir ~/.fonts/
Well, these are the only ones you made ... ?
AdrianTM wrote:There's no hacker in my grandma...

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: No folders in ~/

#3 Post by bw123 »

but why the hell is this happening?
<snip>
It's a fresh install of i3, on Debian netinst
It's happening because you refuse to read any documentation. Take it easy on the servers okay, it's shared resource.

you probably want the xdg-something package.
resigned by AI ChatGPT

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: No folders in ~/

#4 Post by pawRoot »

But i always do it this way, thats why it's weird to me, and 99% of time all of these folders are created automaticaly when i start X.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: No folders in ~/

#5 Post by bw123 »

pawRoot wrote:But i always do it this way, thats why it's weird to me, and 99% of time all of these folders are created automaticaly when i start X.
HOAS told you in the other thread that depending on how you used your xinitrc that it may or may not run the files in /etc/xdg/autostart

I would rather you do things the debian way first until you learn and break the rules later, but DO IT YOUR WAY.
resigned by AI ChatGPT

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: No folders in ~/

#6 Post by pawRoot »

But this problem was happening way before that already, without me modyfing anything.

I have "xdg-user-dirs" installed already.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: No folders in ~/

#7 Post by bw123 »

pawRoot wrote:But this problem was happening way before that already, without me modyfing anything.

I have "xdg-user-dirs" installed already.
yeah but you overwrote it's config with one of your rsync commands. If you would read some documentation you would benefit, seriously.

hmmm, btw thanks I just caught a permissions error cuz of this post.
Last edited by bw123 on 2018-01-12 23:01, edited 1 time in total.
resigned by AI ChatGPT

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: No folders in ~/

#8 Post by Head_on_a_Stick »

The xdg-user-dirs package supplies /etc/X11/Xsession.d/60xdg-user-dirs-update which runs automatically if you don't have ~/.xinitrc

As you do have ~/.xinitrc, you need to add

Code: Select all

xdg-user-dirs-update
To ~/.xinitrc

Or just run the command once to generate the directories and then forget all about it.
deadbang

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: No folders in ~/

#9 Post by pawRoot »

You are the man :D

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: No folders in ~/

#10 Post by bw123 »

setting the x-window-manager alternative and using the default debian setup for running x windows would have likely eliminate a lot of the nonsense.
resigned by AI ChatGPT

Post Reply