Gio.SimplePermission

const Gio = imports.gi.Gio;

let simplePermission = new Gio.SimplePermission();
  

Gio.SimplePermission is a trivial implementation of Gio.Permission that represents a permission that is either always or never allowed. The value is given at construction and doesn't change.

Calling request or release will result in errors.

Hierarchy

  • GObject.Object
    • Gio.Permission
      • Gio.SimplePermission