Garten Eden

#linux #programming #android #online #stuff

USEA #7 Change GNOMEs Default Directories

GNOMEs default paths are practical: Directories having an identifying name like “Documents” or “Videos” are given an emblem-like picture so that you can find them quickly in your file browser (e.g. Nautilus). Can we change these default directories?

Yes, we can. In my opinion the template and documents dir is one of the most useful links because OpenOffice shows them directly after certain commands. Nevertheless I would like it if my templates lay in the document path and when the latter was shortened to Docs.


Fortunately it is possible that every user can define his or her favorite paths for the default directories. Changing the responsible file ~/.config/user-dirs.dirs, I have it this way now:

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line youre
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.

As you can see I do not need the publicshare directory. That is way I linked it to the home path itself. Otherwise it will be created every time Nautilus accesses the location — even if you delete it!

Moreover you can change the Desktop path here (many users ask for that).


Your comment:

So far... comments


Wait a sec, loading...

Email (not published)

Homepage (optional)

Comment... (code tag allowed)