3

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?

Fresco
  • 101

3 Answers3

2

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!

Anwar
  • 76,649
0

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.
Uri Herrera
  • 14,866
0

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).

stephenmyall
  • 9,855