aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am2
-rw-r--r--data/upstart/Makefile.am12
-rw-r--r--data/upstart/indicator-messages.desktop.in8
3 files changed, 21 insertions, 1 deletions
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