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.

Possible Duplicate:
where is stored the icon informations for folders

In windows there's hidden a configuration file: if deleted, it's like it was never customized.

I don't see anything when customizing in Ubuntu,

Where does it store the configuration file that says what icon to display?

share|improve this question

marked as duplicate by Anwar Shah, hbdgaf, Mitch, Jorge Castro, izx Aug 30 '12 at 22:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
There's no .icons folder there. –  Fresco Aug 2 '12 at 7:39
    
I'm telling you, i have enabled the view of hidden folders/files, i see lots of .file/.folder but there's no .icons –  Fresco Aug 2 '12 at 7:49
    
OK ,then someone will answer it. –  atenz Aug 2 '12 at 7:50
    
If you don't have a .icons folder create it, usually there's not .themes and .icons upon fresh install. –  Uri Herrera Aug 2 '12 at 8:39
add comment

3 Answers 3

Ubuntu stores directory information such as what icon to display in a user specific hidden folder. The folder is ~/.local/share/gvfs-metadata. Home directory settings are stored in ~/.local/share/gvfs-metadata/home. If you change some other settings on other partitions, they are stored also in this folder with a file name using partition UUID.

To Experiment with this, first move the folder in the Home directory and restart nautilus.

  • Move the gvfs-metadata folder to home

    mv ~/.local/share/gvfs-metadata ~
    
  • Restart nautilus by pressing ALT+F2 and typing nautilus -q. Then again bring the dash command with the previous keyboard shortcut and type nautilus. You will see that, any customized icon is reset to default.

  • Now again move the gvfs-metadata to it's previous location

    mv ~/gvfs-metadata ~/.local/share/
    

    Again, restart nautilus by doing nautilus -q command and open your home folder to see that, the customized icon is now back!

share|improve this answer
add comment

Depending on what DE you're using your settings will be in hidden folders such as:

Folders starting with:

  • Gnome : .gnome2, etc.
  • KDE: .kde

Others are inside the .config folder such as:

  • XFCE: .xfce4, etc.
share|improve this answer
add comment

While this doesnt answer your specific question, ýou may benefit from learning more about the file system in Ubuntu. This previous question, "How to Understand the Ubuntu file system layout" is a terriffic source for just that (and somewhere in there, is you answer).

share|improve this answer
add comment

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