I have set a custom icon for a directory (via the file manager). this should set the metadata::custom-icon
attribute. however, gio info <path>
does not show this attribute at all.
the following python script shows it though:
from gi.repository import Gio
attribute = 'metadata::custom-icon'
folder = Gio.File.new_for_path('/path/to/directory')
info = folder.query_info(attribute, 0, None)
print(info.list_attributes())
print(info.get_attribute_string(attribute))
# output:
# ['metadata::custom-icon']
# file:///path/to/icon.png
I am curious to find out why that might be.