If gtk-launch exits before the program it starts fully activates, then the dbus-daemon may avoid doing the activating method call.
This commit works around the problem by pinging the activated application, and waiting for a reply.
This is similar to the gvfs-open bug here:
https://bugzilla.gnome.org/show_bug.cgi?id=746534
https://bugzilla.gnome.org/show_bug.cgi?id=763103
50598ee gtk-launch: add hack to close up dbus-daemon race
gtk/gtk-launch.c | 41 +++++++++++++++++++++++++++++++++++++++--
1 file changed, 39 insertions(+), 2 deletions(-)
Upstream: git.gnome.org