As one can resize the icons on desktop (not within nautilus) through righ-click menu: "Resize icon..", so where is the size stored for that certain file.
As one can resize the icons on desktop (not within nautilus) through righ-click menu: "Resize icon..", so where is the size stored for that certain file.
File attributes for icons are stored in binary files inside
~/.local/share/gvfs-metadata/
.To read an attribute for a file you need to use the
gvfs-info
command supplied by thegcfs-bin
package.To read the complete metadata stored from a file/folder on the
gvfs
usegvfs-info -a "metadata::*" <path_to_file/folder>
, ieTo set an attribute inside the
gvfs
you use the commandgvfs-set-attribute
which is also part ofgvfs-bin
as thisgvfs-set-attribute <path_to_some_file/folder> metadata::some-key "some_value"
If you want to change the scale of an icon in gnome you need to change the icon-scale attribute so for the file shown before if I wanted to reset the scale to 1 would do that as this
gvfs-set-attribute /home/bruno/Desktop/Screenshot\ at\ 2011-12-14\ 21:29:29.png metadata::icon-scale "1"
Unfortunately I could only see the changes after I logged off and back in on,
unity --replace &
did not do the trick. I am not sure if you can force Gnome to reload the data from thegvfs
binaries.The icons doesnt really have a size, they are all SVG which are infinite on size.
The Size which nautilus use to display it inside itself its stored on the Nautilus hidden folder on your $HOME (in .config/nautilus, but this may differ on newer versions)