Gio.VolumeMonitor

const Gio = imports.gi.Gio;

let volumeMonitor = new Gio.VolumeMonitor();
  

Gio.VolumeMonitor is for listing the user interesting devices and volumes on the computer. In other words, what a file selector or file manager would show in a sidebar.

Gio.VolumeMonitor is not [thread-default-context aware][g-main-context-push-thread-default], and so should not be used other than from the main thread, with no thread-default-context active.

Hierarchy

  • GObject.Object
    • Gio.VolumeMonitor