Nautilus allows users to set emblems on directories and files but surprisingly it doesn't use the actual file metadata stores like xattr to store this added metadata.
So where and how does Nautilus store this data? (I'd like to access it from outside Nautilus.)
As it seems, GVFS stores such metadata in it's "metadata::emblems" namespace (try the CLI command gvfs-info), but
where does GVFS store it's data? In a separate db, in xattr or in both, depending on namespace??
The metadata is stored by GVFS in ~/.local/share/gvfs-metadata/ (strictly speaking in $XDG_DATA_HOME/gvfs-metadata, whereas XDG_DATA_HOME by default is ~/.local/share).
For instance, if you have a partition with label home, then metadata will be stored in ~/.local/share/gvfs-metadata/home.
You can use the GIO API to have access to those attributes in your own program.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With