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
uris | List of URIs |
launchContext | a #GAppLaunchContext |
spawnFlags | #GSpawnFlags, used for each process |
userSetup | a #GSpawnChildSetupFunc, used once for each process. |
pidCallback | Callback for child processes |
stdinFd | file descriptor to use for child's stdin, or -1 |
stdoutFd | file descriptor to use for child's stdout, or -1 |
stderrFd | file descriptor to use for child's stderr, or -1 |
Returns
true on successful launch, false otherwise.
Throws
[ErrorWrap]