app: 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

Updates POTFILE files accordingly
This commit is contained in:
Erick Pérez Castellanos
2014-12-22 23:34:29 -05:00
parent 43522b8845
commit 1b31d419d4
5 changed files with 19 additions and 5 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ AC_CONFIG_FILES([
Makefile
src/Makefile
data/Makefile
data/gnome-calendar.desktop.in
data/org.gnome.Calendar.desktop.in
data/icons/Makefile
po/Makefile.in
])
+15 -2
View File
@@ -1,11 +1,24 @@
SUBDIRS = icons
desktopdir = $(datadir)/applications
desktop_in_files = org.gnome.Calendar.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
desktop_in_files = gnome-calendar.desktop.in
@INTLTOOL_DESKTOP_RULE@
servicedir = $(datadir)/dbus-1/services
service_DATA = org.gnome.Calendar.service
%.service: %.service.in Makefile
$(AM_V_GEN) [ -d $(@D) ] || $(mkdir_p) $(@D) ; \
sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@.tmp && mv $@.tmp $@
org.gnome.Calendar.service:
$(AM_V_GEN) (echo '[D-BUS Service]'; \
echo 'Name=org.gnome.Calendar'; \
echo 'Exec=${bindir}/gnome-calendar --gapplication-service') > $@.tmp && \
mv $@.tmp $@
gsettings_ENUM_NAMESPACE = org.gnome.calendar
gsettings_ENUM_FILES = \
$(top_srcdir)/src/gcal-utils.h
@@ -18,7 +31,7 @@ gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)
@GSETTINGS_RULES@
EXTRA_DIST= \
gnome-calendar.desktop \
org.gnome.Calendar.desktop \
calendar.gresource.xml \
ui/edit-dialog.ui \
ui/menus.ui \
@@ -9,3 +9,4 @@ StartupNotify=true
OnlyShowIn=GNOME;
Categories=GNOME;GTK;Utility;Core;
MimeType=text/calendar;
DBusActivatable=true
+1 -1
View File
@@ -1,5 +1,5 @@
# List of source files containing translatable strings.
data/gnome-calendar.desktop.in.in
data/org.gnome.Calendar.desktop.in.in
data/org.gnome.calendar.gschema.xml.in
[type: gettext/glade]data/ui/edit-dialog.ui
[type: gettext/glade]data/ui/menus.ui
+1 -1
View File
@@ -1,2 +1,2 @@
# List of skipped of translation files
data/gnome-calendar.desktop.in
data/org.gnome.Calendar.desktop.in