assigning a custom icon to a directory (for instance in nautilus) will set the
metadata::custom-icon file attribute. this can be confirmed by running the following code as standalone script (with the
const Gio = imports.gi.Gio; const f = Gio.file_new_for_path('/dir/with/custom/icon'); const fileInfo = f.query_info('*', 0, null); const attrib = 'metadata::custom-icon'; log(attrib + ': ' + fileInfo.get_attribute_as_string(attrib));
however, running the same code as part of a gnome shell extensions, it returns
why is that?