Customised User Directories in Ubuntu

I’ve been doing alot of messing around in Ubuntu recently and there are lots of tweaks I like to make. One of them being to show the contents of my home folder as my desktop; I don’t need any more pointless folders….

Dead easy, there is a .config directory under your $HOME dir, containing several files. The one we need is user-dirs.dirs , and it looks something like this.


# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# 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.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

And this is what I changed mine to


# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# 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.
#
XDG_DESKTOP_DIR="$HOME"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Dropbox/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Dropbox/Photos"
XDG_VIDEOS_DIR="$HOME/Videos"

    Changed desktop directory to home
    Made the Documents and Pictures directories reference the relevent Dropbox folders

Tags: , , , , , ,

One comment

  1. This is a pretty cool idea, at first I used it to sync my desktop(!), documents, and pictures between my laptop and desktop. One thing that I didn’t like was that it left the Home folder empty of all those folders (along with the Nautilus sidebar). What I instead ended up doing is using the original user-dirs.dirs file settings and deleting the folders in /home/ and creating soft symbolic links to take you to the Dropbox folders (ex. ‘ln -s ~/Dropbox/Desktop/ ~/Desktop’). This way I still have my /home/ folder icons but am able to sync my folders with Dropbox!

Leave a comment


Load Times Plugin made by Ares Free Download