DesktopAppInfo.launchUrisAsManagerWithFds

bool launchUrisAsManagerWithFds(string[] uris, gio.app_launch_context.AppLaunchContext launchContext, glib.types.SpawnFlags spawnFlags, glib.types.SpawnChildSetupFunc userSetup, gio.types.DesktopAppLaunchCallback pidCallback, int stdinFd, int stdoutFd, int stderrFd)

Equivalent to [gio.desktop_app_info.DesktopAppInfo.launchUrisAsManager] but allows you to pass in file descriptors for the stdin, stdout and stderr streams of the launched process.

If application launching occurs via some non-spawn mechanism (e.g. D-Bus activation) then stdin_fd, stdout_fd and stderr_fd 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
stdinFdfile descriptor to use for child's stdin, or -1
stdoutFdfile descriptor to use for child's stdout, or -1
stderrFdfile descriptor to use for child's stderr, or -1

Returns

true on successful launch, false otherwise.

Throws

[ErrorWrap]