Gio.FileIcon

const Gio = imports.gi.Gio;

let fileIcon = new Gio.FileIcon({
    file: value,
});
  

Gio.FileIcon specifies an icon by pointing to an image file to be used as icon.

Hierarchy

  • GObject.Object
    • Gio.FileIcon