Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 2114  / 1 Year ago, thu, february 9, 2023, 6:26:46

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.


More From » icons

 Answers
4

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 the gcfs-bin package.



To read the complete metadata stored from a file/folder on the gvfs use gvfs-info -a "metadata::*" <path_to_file/folder>, ie




gvfs-info -a "metadata::*" /home/bruno/Desktop/Screenshot at 2011-12-14 21:29:29.png




attributes:
metadata::icon-scale: 2.6875
metadata::nautilus-icon-position-timestamp: 1323894580
metadata::screen:
metadata::nautilus-icon-position: 77,15


To set an attribute inside the gvfs you use the command gvfs-set-attribute which is also part of gvfs-bin as this gvfs-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 the gvfs binaries.


[#41726] Thursday, February 9, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tinchir

Total Points: 300
Total Questions: 116
Total Answers: 119

Location: American Samoa
Member since Sun, Jan 17, 2021
3 Years ago
tinchir questions
Tue, Sep 14, 21, 23:11, 3 Years ago
Mon, Dec 19, 22, 13:00, 1 Year ago
Sat, Feb 5, 22, 11:36, 2 Years ago
Mon, Aug 8, 22, 02:16, 2 Years ago
;