Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

First of all, I know this question seems very common. I know the /usr/share/icons/Humanity/places folder. So this is not exactly about it.

On a fresh install, when you open Nautilus, you see your Home folder. It has several default folders with special icons, such as Downloads, Music, Pictures, etc. They are also bookmarked, so that you can see them on the sidebar. Actually two different icons are displayed : in the main panel, this is the places/64/folder-music.svg that is displayed. In the sidebar, this is places/16/folder-music.svg

I deleted this Music folder. I created it again, and customized the icon using /usr/share/icons/Humanity/places/64/folder-music.svg But in the sidebar, the icon is a resized version of this one, not the 16 version !

How can I recreate the original behaviour?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Finally, I figured it out by myself (or, to be honest, with help from an ArchLinux forum). So, in the sidebar, this special folders are not under "Bookmarks" but under "Computer". To include custom folders in this list, you have to edit ~/.config/user-dirs.dirs.

Here's the content of mine :

# 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/Bureau"
XDG_DOWNLOAD_DIR="$HOME/Téléchargements"
XDG_TEMPLATES_DIR="$HOME/Modèles"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Musique"
XDG_PICTURES_DIR="$HOME/Images"
XDG_VIDEOS_DIR="$HOME/Vidéos"

It happens that the line concerning music had become XDG_MUSIC_DIR="$HOME/ after I had deleted the Music folder.

Once you have filled this file appropriately, most of work is done. But if you have also customized your icons by changing it to usr/share/icons/whatever you may also want to reset the icon to default by right-clicking on the folder icon, then going to Properties, clicking on the icon and pressing "reset" at the bottom of the window.

share|improve this answer
    
Thanks!! Was wondering where they stored this config information. –  ztangent Aug 12 '12 at 3:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.