Gio.Application.get_default

function get_default(): Gio.Application {
    // Gjs wrapper for g_application_get_default()
}
  

Returns the default Gio.Application instance for this process.

Normally there is only one Gio.Application per process and it becomes the default when it is created. You can exercise more control over this by using Gio.Application.prototype.set_default.

If there is no default application then null is returned.

Since 2.32

Returns

the default application for this process, or null