0

I put this in my ~/.config/user-dirs.dirs...but doesn't work (only the desktop part is working):

XDG_DESKTOP_DIR="/media/E/Administrateur/Bureau/"
XDG_DOWNLOAD_DIR="$HOME/Téléchargements"
XDG_TEMPLATES_DIR="$HOME/Modèles"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="/media/E/Administrateur/Mes_documents/"
XDG_MUSIC_DIR="/media/E/Administrateur/Mes_documents/Ma_musique/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"

When I go to ~/Documents it is still empty...

is there something wrong ?

thanks

1 Answer 1

2

user-dirs.dirs doesn't work like that. ~/Documents is just a directory on the file system. The thing it changes are the icons in Nautilus, bookmarks etc. So, when you go to Nautilus and click the Documents directory (I don't know what it will be called, it's a long time ago that I used translated directory names) you should get to where you want.

It seems to me you actually want something different. For example, when taking ~/Documents, what you could do is use this in user-dirs.dirs:

XDG_DOCUMENTS_DIR="$HOME/Documents"

And let point ~/Documents to /media/E/Administrateur/Mes_documents/:

rmdir ~/Documents
ln -s /media/E/Administrateur/Mes_documents/ ~/Documents

These are commands you can enter in a terminal (just search for 'terminal' in the dash).

What this does, is that creates a symbolic link named ~/Documents that points towards /media/E/Administrateur/Mes_documents/. In effect, applications (like Nautilus) think they're looking at ~/Documents but they're actually looking at a different directory, somewhere else on the file system (or on a different filesystem, which seems to be the case here). You can use this also for the rest of the directories.

I think the Desktop directory is a bit of an exception. As I understand it, the desktop is just Nautilus running full-screen without toolbars etc. behind all other windows, showing the directory specified in user-dirs.dirs. That's the reason (I think) why the desktop works. (Note, ~/Desktop would probably still be empty).

I recommend you also put a real Pictures and Videos dir. Otherwise, some applications might get confused.

More about symbolic links: http://www.linuxchix.org/content/courses/filesystem/Lesson2a.html

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .