GNOME Bugzilla – Bug 728384
Make DBus-activatable
Last modified: 2015-05-24 08:38:43 UTC
Created attachment 274538 [details] [review] Convert to new-style commandline option handling These commits switch to new-style commandline option handling, install a service file, rename the desktop file to follow the bus name, and add the DBusActivatable key to the desktop file, following https://wiki.gnome.org/HowDoI/DBusApplicationLaunching
Created attachment 274539 [details] [review] Make DBus-activatable
Starting devhelp from the shell overview correctly starts "devhelp --gapplication-service" but no window appear. Running it from the command line diesplays a message about g_application_activate() or the 'activate' signal; is there anything missing? (running Weather works fine, so I believe my environment is fine wrt dbus-activated apps). $ /scratch/jhbuild/bin/devhelp --gapplication-service (devhelp:24813): GLib-GIO-WARNING **: Your application does not implement g_application_activate() and has no handlers connected to the 'activate' signal. It should do one of these.
Created attachment 303863 [details] [review] Implement GApplication::activate A GtkApplication is expected to present a window when org.freedesktop.Application.Activate is called. This is needed to make DBus activation work properly.
Sorry that it took me a while to get back to this. The third patch has what was missing: an implementation of activate.
Thank you Matthias. Attachment 274538 [details] pushed as 1de0fb9 - Convert to new-style commandline option handling Attachment 303863 [details] pushed as cd718f9 - Implement GApplication::activate