How to set start directory to /home/user rather than /home/user/Desktop?

Oct 25, 2024 Last reply: 1 year ago 5 Replies

I am a died in the wool commadn line user. I have just installed Debian Bookworm on my laptop in place of xubuntu. The installation went pretty smoothly and now I'm configuring things the way I want them.



I **hate** icons on the desktop and I just want to be in $HOME when I log in. So I have configured ~/.config/user-dirs.drs so none of the things like ~/Music and ~/Pictures are created, so far so good. I have also set things so that my 'desktop' directory isn't ~/Desktop, it's ~/.desktop which is invisible. I have absolutely no need or use for a desktop directory.



However, when I start a terminal it starts in ~/.desktop, I want it to start in ~. Does anyone know where that gets set? I certainly had XFCE configured in xubuntu so that terminals started in ~ so I think it must be possible in Debian.



Oops, sorry, this was supposed to go to the Debian list. ... and anyway I have discovered the answer. If I click on the bacground I get a terminal in $HOME/.desktop (as it should be) but if I just start a terminal from the menu it's in $HOME as I would expect.

Sorry for the noise!

What happens if you append "cd ~." to .bashrc ?

That might work but it shouldn't be necessary and, anyway, I want "start terminal here" to do what it says.

However see my reply, this was the wrong list and I've realised my original mistake. :-)

In article (Dans l'article) snipped-for-privacy@q957.zbmc.eu>, Chris Green snipped-for-privacy@isbd.net wrote (écrivait) :

The HOME directory is in /etc/passwd. Example:

user:x:1000:1000:User:/home/user:/bin/bash.

- man usermod: The usermod command modifies the system account files.

That is already the value of “~”.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required