gdesktopappinfo: add g_desktop_app_info_launch_uris_as_manager_with_fds variant

Add an app-launching function which allows standard file descriptors
to be passed to the child process.

This will be used by gnome-shell to pass systemd journal descriptors
as stdout/stderr. gnome-shell's child_setup function can then be
eliminated, which will enable use of the posix_spawn optimized
gspawn codepath for desktop app launching.
This commit is contained in:
Daniel Drake
2018-06-06 06:59:59 -06:00
parent 742efe6232
commit 156d009696
4 changed files with 143 additions and 19 deletions

View File

@@ -1618,6 +1618,7 @@ g_desktop_app_info_get_boolean
g_desktop_app_info_has_key
GDesktopAppLaunchCallback
g_desktop_app_info_launch_uris_as_manager
g_desktop_app_info_launch_uris_as_manager_with_fds
<SUBSECTION>
g_desktop_app_info_list_actions
g_desktop_app_info_get_action_name