GNOME Bugzilla – Bug 722662
Turn into a DBus activatable service
Last modified: 2014-02-18 01:10:34 UTC
Use the new facilities in GtkApplication to turn the app into a DBus-activatable service.
Created attachment 266821 [details] [review] application: don't call Gtk.init() manually GtkApplication already does this for us in startup().
Created attachment 266822 [details] [review] application: turn into a DBusActivatable service Use the new DBusActivatable features in GtkApplication to turn gnome-documents into a DBus-activated service.
Created attachment 266824 [details] [review] application: turn into a DBusActivatable service -- Forgot to git add one file
Created attachment 266825 [details] [review] application: turn into a DBusActivatable service -- Third time's a charm.
Review of attachment 266825 [details] [review]: I think the desktop file has to be called org.gnome.Documents.desktop.in.in for this to work ?
Review of attachment 266821 [details] [review]: Looks good.
Review of attachment 266825 [details] [review]: I think org.gnome.Documents.desktop.in is OK, and we do not need the extra .in. This is because there is nothing in that file that needs to be translated by configure. eg., Exec and Icon does not use Autoconf variables. We only need one .in for INTLTOOL_DESKTOP_RULE.
Review of attachment 266825 [details] [review]: Matthias, I think org.gnome.Documents.desktop.in is OK, and we do not need the extra .in. This is because there is nothing in that file that needs to be translated by configure. eg., Exec and Icon does not use Autoconf variables. We only need one .in for INTLTOOL_DESKTOP_RULE. Cosimo, You also need to fix the appdata file. It should now be org.gnome.Documents.appdata.xml, and the <id type="desktop"> in the file should be updated too.
Review of attachment 266825 [details] [review]: ::: src/gnome-documents @@ +16,3 @@ + +let application = new Application(); +application.run(ARGV); Why not just: #!/bin/sh gapplication launch org.gnome.Documents Not a blocker, though. Just saying. :)
Attachment 266825 [details] pushed as 04d89d1 - application: turn into a DBusActivatable service Fixed the review comments and pushed to master.