diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-06-09 22:23:18 -0400 |
---|---|---|
committer | Erick PĂ©rez Castellanos <erick.red@gmail.com> | 2014-06-09 22:23:18 -0400 |
commit | 62121e1f31d4edc08831975c7561467468503032 (patch) | |
tree | b0cfe099a4125a96a3434fcbf4ca380a347c2d69 /data | |
parent | 0aea44d30b01063ae37f60c7ae990d423f7bfff2 (diff) | |
download | gnome-contacts-62121e1f31d4edc08831975c7561467468503032.tar.gz |
contacts: Make DBus-activatable
This commit installs a service file, renames the desktop file
to follow the bus name, and adds the DBusActivatable key to the
desktop file, following
https://wiki.gnome.org/HowDoI/DBusApplicationLaunching
https://bugzilla.gnome.org/show_bug.cgi?id=728266
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 12 | ||||
-rw-r--r-- | data/org.gnome.Contacts.desktop.in.in (renamed from data/gnome-contacts.desktop.in.in) | 1 |
2 files changed, 10 insertions, 3 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 7fa7314..979f3ce 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,7 +1,7 @@ NULL= desktopdir = $(datadir)/applications -desktop_in_files = gnome-contacts.desktop.in +desktop_in_files = org.gnome.Contacts.desktop.in desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) searchproviderdir = $(datadir)/gnome-shell/search-providers @@ -15,19 +15,25 @@ searchprovider_DATA = gnome-contacts-search-provider.ini service_in_files = org.gnome.Contacts.SearchProvider.service.in servicedir = $(datadir)/dbus-1/services -service_DATA = $(service_in_files:.service.in=.service) +service_DATA = $(service_in_files:.service.in=.service) org.gnome.Contacts.service %.service: %.service.in Makefile $(AM_V_GEN) [ -d $(@D) ] || $(mkdir_p) $(@D) ; \ sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@.tmp && mv $@.tmp $@ +org.gnome.Contacts.service: + $(AM_V_GEN) (echo '[D-BUS Service]'; \ + echo 'Name=org.gnome.Contacts'; \ + echo 'Exec=${bindir}/gnome-contacts --gapplication-service') > $@.tmp && \ + mv $@.tmp $@ + @INTLTOOL_XML_RULE@ appdatadir = $(datadir)/appdata appdata_DATA = $(appdata_in_files:.xml.in=.xml) appdata_in_files = gnome-contacts.appdata.xml.in EXTRA_DIST = \ - gnome-contacts.desktop.in.in \ + org.gnome.Contacts.desktop.in.in \ contacts.gresource.xml \ ui/app-menu.ui \ ui/contacts-window.ui \ diff --git a/data/gnome-contacts.desktop.in.in b/data/org.gnome.Contacts.desktop.in.in index 8d395d7..0e25719 100644 --- a/data/gnome-contacts.desktop.in.in +++ b/data/org.gnome.Contacts.desktop.in.in @@ -9,3 +9,4 @@ Type=Application StartupNotify=true Categories=GNOME;GTK;Utility; OnlyShowIn=GNOME;Unity; +DBusActivatable=true |