DesktopAppInfo.launchUrisAsManager

bool launchUrisAsManager(string[] uris, gio.app_launch_context.AppLaunchContext launchContext, glib.types.SpawnFlags spawnFlags, glib.types.SpawnChildSetupFunc userSetup = null, gio.types.DesktopAppLaunchCallback pidCallback = null)

This function performs the equivalent of [gio.app_info.AppInfo.launchUris], but is intended primarily for operating system components that launch applications. Ordinary applications should use [gio.app_info.AppInfo.launchUris].

If the application is launched via GSpawn, then spawn_flags, user_setup and user_setup_data are used for the call to [glib.global.spawnAsync]. Additionally, pid_callback (with pid_callback_data) will be called to inform about the PID of the created process. See [glib.global.spawnAsyncWithPipes] for information on certain parameter conditions that can enable an optimized posix_spawn() codepath to be used.

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.

Parameters

urisList of URIs
launchContexta #GAppLaunchContext
spawnFlags#GSpawnFlags, used for each process
userSetupa #GSpawnChildSetupFunc, used once for each process.
pidCallbackCallback for child processes

Returns

true on successful launch, false otherwise.

Throws

[ErrorWrap]