GNOME: Where does Nautilus store logo data and how?

Nautilus allows users to set logos in directories and files, but surprisingly it does not use actual file metadata repositories such as xattr to store this added metadata.

So where and how does Nautilus store this data? (I would like to get access to it from the side of Nautilus.)

GVFS seems to store such metadata in the namespace "metadata :: emblems" (try the CLI gvfs-info command), but

Where does GVFS store data? In a separate db, in xattr, or both, depending on the namespace

+4
source share
1 answer

Metadata is stored in GVFS in ~ / .local / share / gvfs-metadata / (strictly speaking in $ XDG_DATA_HOME / gvfs metadata, while XDG_DATA_HOME defaults to ~ / .local / share).

For example, if you have a section labeled home, then the metadata will be stored in ~ / .local / share / gvfs-metadata / home.

You can use the GIO API to access these attributes in your own program.

+4
source

Source: https://habr.com/ru/post/1415873/


All Articles