Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My music folder has a different icon from the other folders.
Gnome use the folder-music icon to personalize the music folder icon.

I would like to know where (in which configuration file or where in GConf, DConf) this association is made.

share|improve this question
up vote 3 down vote accepted

/etc/xdg/user-dirs.defaults (global) and ~/.config/user-dirs.dirs (local) contain the directions to default directories. The xdg-user-dirs-update command may also be of some use to you.

Edit: Sorry, I should have been far more specific. In gnome, the file manager Nautilus constantly monitors the XDG configuration files for changes, and is hard-coded throughout (for example; nautilus-icon-names.h) to match the specific pixmap to the specified XDG folder.

share|improve this answer
    
Thanks for your answer, but my question is how Gnome makes the link between a folder and its icon. Not where is the default folder configuration. – Nicolas Jan 18 '13 at 23:26
    
Thanks for the edit, this is exactly the answer I was looking for. – Nicolas Jan 7 at 22:57

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.