launch_uris_as_manager_with_fds


Description:

public bool launch_uris_as_manager_with_fds (List<string> uris, AppLaunchContext? launch_context, SpawnFlags spawn_flags, SpawnChildSetupFunc? user_setup = null, DesktopAppLaunchCallback? pid_callback = null, int stdin_fd = -1, int stdout_fd = -1, int stderr_fd = -1) throws Error

Equivalent to launch_uris_as_manager 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:

this

a DesktopAppInfo

uris

List of URIs

launch_context

a AppLaunchContext

spawn_flags

SpawnFlags, used for each process

user_setup

a SpawnChildSetupFunc, used once for each process.

pid_callback

Callback for child processes

stdin_fd

file descriptor to use for child's stdin, or -1

stdout_fd

file descriptor to use for child's stdout, or -1

stderr_fd

file descriptor to use for child's stderr, or -1

pid_callback_data

User data for callback

user_setup_data

User data for user_setup

Returns:

true on successful launch, false otherwise.




2022 vala-language.org