Zen-Dreams

Zen-Dreams.com

Change your default folders in gnome

  • Français

Last night, I’ve been stuck with my Ubuntu distribution as I wanted to add templates for creating new documents. The main problem is that I don’t like to have too much folders in my home directory and I couldn’t find the Templates folder. Recreating didn’t solve the problem.

Because yes, that’s where the file templates should be located.

But, I discovered this file : ~/.config/user-dirs.dirs which contains directives to tell gnome where to find some files it needs.

Therefore you can tell Gnome where it will find it’s templates, but also where it has to look for your music, vidéos, pictures and so on…

For example, you can set it like this, with /media/mydata a vfat disk shared with a Windows system (or a Filer, Samba Share, etc…) or like me, just another ext3 disk.

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="/media/mydata/Downloads"
XDG_TEMPLATES_DIR="$HOME/.templates"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="/media/mydata/MyDocuments"
XDG_MUSIC_DIR="/media/mydata/Music"
XDG_PICTURES_DIR="/media/mydatas/Pictures"
XDG_VIDEOS_DIR="/media/mydata/Videos"

Once you have setup your templates folder, you can go directly via the Go->Templates menu and creating files. I created these PHP Source and HTML Page

By Anthony

Post a Comment

Your email is never shared. Required fields are marked *

*
*