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:
+1
-1
@@ -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
@@ -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
@@ -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
@@ -1,2 +1,2 @@
|
||||
# List of skipped of translation files
|
||||
data/gnome-calendar.desktop.in
|
||||
data/org.gnome.Calendar.desktop.in
|
||||
|
||||
Reference in New Issue
Block a user