DesktopAppInfo.launchUrisAsManager

This function performs the equivalent of g_app_info_launch_uris(), but is intended primarily for operating system components that launch applications. Ordinary applications should use g_app_info_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 g_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.

Parameters

uris ListG

List of URIs

launchContext AppLaunchContext

a #GAppLaunchContext

spawnFlags GSpawnFlags

#GSpawnFlags, used for each process

userSetup GSpawnChildSetupFunc

a #GSpawnChildSetupFunc, used once for each process.

userSetupData void*

User data for @user_setup

pidCallback GDesktopAppLaunchCallback

Callback for child processes

pidCallbackData void*

User data for @callback

Return Value

Type: bool

%TRUE on successful launch, %FALSE otherwise.

Throws

GException on failure.

Meta