GNOME Bugzilla – Bug 678054
Provide a synchronous version of g_app_info_launch*
Last modified: 2018-05-24 14:16:32 UTC
Hi! g_app_info_launch() and g_app_info_launch_uris() end with the invocation of g_spawn_async(). A synchronous version of those two functions would be appreciated. g_app_info_launch_uris() does some complex operations (parameter expansion, environment, terminal handling) which are difficult to mimic. This would allow gvfs-open to terminate only when the invoked application terminates. See bug #652262 for the rationale for this.
that is really not what the 'launch' apis are about, I'm afraid.
In this case, feel free to close the bug. I still have other options like using `g_desktop_app_info_launch_uris_as_manager()` with `G_SPAWN_DO_NOT_REAP_CHILD` flag and using `waitpid(-1)` to get a synchronous behavior.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/555.