aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-19 23:12:07 -0600
committerTed Gould <ted@gould.cx>2014-02-19 23:12:07 -0600
commit50d4a5cc6d3021397707644c63ebb96cfe23c8cb (patch)
tree151847516ebdf518f839db0f7ee5336bd0a0d896
parent98b1efd83f290d796c7f86a60f98495b9ee69290 (diff)
downloadayatana-indicator-messages-50d4a5cc6d3021397707644c63ebb96cfe23c8cb.tar.gz
ayatana-indicator-messages-50d4a5cc6d3021397707644c63ebb96cfe23c8cb.tar.bz2
ayatana-indicator-messages-50d4a5cc6d3021397707644c63ebb96cfe23c8cb.zip
Adding the Upstart XDG override
-rw-r--r--configure.ac1
-rw-r--r--data/Makefile.am2
-rw-r--r--data/upstart/Makefile.am12
-rw-r--r--data/upstart/indicator-messages.desktop.in8
4 files changed, 22 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ab5829a..e27f41d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -169,6 +169,7 @@ data/icons/48x48/status/Makefile
data/icons/scalable/Makefile
data/icons/scalable/status/Makefile
data/icons/scalable/categories/Makefile
+data/upstart/Makefile
po/Makefile.in
test/Makefile
libmessaging-menu/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index 8752076..b991686 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = icons
+SUBDIRS = icons upstart
xdg_autostartdir = /etc/xdg/autostart
xdg_autostart_DATA = indicator-messages.desktop
diff --git a/data/upstart/Makefile.am b/data/upstart/Makefile.am
new file mode 100644
index 0000000..c182438
--- /dev/null
+++ b/data/upstart/Makefile.am
@@ -0,0 +1,12 @@
+
+xdg_autostartdir = $(datadir)/upstart/xdg/autostart
+xdg_autostart_DATA = indicator-messages.desktop
+
+%.desktop: %.desktop.in
+ $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+
+EXTRA_DIST = \
+ indicator-messages.desktop.in
+
+CLEANFILES = \
+ $(xdg_autostart_DATA)
diff --git a/data/upstart/indicator-messages.desktop.in b/data/upstart/indicator-messages.desktop.in
new file mode 100644
index 0000000..dd0b1d6
--- /dev/null
+++ b/data/upstart/indicator-messages.desktop.in
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Name=Indicator Messages
+Exec=@pkglibexecdir@/indicator-messages-service
+StartupNotify=false
+Terminal=false
+OnlyShowIn=Unity;
+Hidden=true