Gio.DesktopAppInfo.prototype.launch_uris_as_manager

function launch_uris_as_manager(uris: Array(String), launch_context: Gio.AppLaunchContext, spawn_flags: GLib.SpawnFlags): Boolean {
    // Gjs wrapper for g_desktop_app_info_launch_uris_as_manager()
}
  

This function performs the equivalent of Gio.AppInfo.prototype.launch_uris, but is intended primarily for operating system components that launch applications. Ordinary applications should use Gio.AppInfo.prototype.launch_uris.

If the application is launched via traditional UNIX fork()/exec() then spawn_flags, user_setup and user_setup_data are used for the call to GLib.spawn_async. Additionally, pid_callback (with pid_callback_data) will be called to inform about the PID of the created process.

If application launching occurs via some other mechanism (eg: D-Bus activation) then spawn_flags, user_setup, user_setup_data, pid_callback and pid_callback_data are ignored.

uris

List of URIs

launch_context

a Gio.AppLaunchContext

spawn_flags

GLib.SpawnFlags, used for each process

Returns

true on successful launch, false otherwise.