aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-20 08:59:27 -0600
committerTed Gould <ted@gould.cx>2014-02-20 08:59:27 -0600
commit6f4bbf0bac764ad82d884f9768d45038acdf3924 (patch)
tree0fd5218dc89fc8a5fc892bf125349ba0f62f9f65
parent87f8929bab1340f1044ce6e6fe5309acb5ab9dd3 (diff)
downloadayatana-indicator-power-6f4bbf0bac764ad82d884f9768d45038acdf3924.tar.gz
ayatana-indicator-power-6f4bbf0bac764ad82d884f9768d45038acdf3924.tar.bz2
ayatana-indicator-power-6f4bbf0bac764ad82d884f9768d45038acdf3924.zip
Add the Upstart override
-rw-r--r--configure.ac1
-rw-r--r--data/upstart/Makefile.am17
-rw-r--r--data/upstart/indicator-power.desktop.in9
3 files changed, 27 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ca7e793..30aa0d9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -118,6 +118,7 @@ AC_CONFIG_FILES([
Makefile
po/Makefile.in
data/Makefile
+data/upstart/Makefile
src/Makefile
tests/Makefile
])
diff --git a/data/upstart/Makefile.am b/data/upstart/Makefile.am
new file mode 100644
index 0000000..1259a88
--- /dev/null
+++ b/data/upstart/Makefile.am
@@ -0,0 +1,17 @@
+BUILT_SOURCES=
+CLEANFILES=
+EXTRA_DIST=
+
+#
+# the upstart xdg autostart override
+#
+
+xdg_autostartdir = $(datadir)/upstart/xdg/autostart
+xdg_autostart_DATA = indicator-power.desktop
+xdg_autostart_in = $(xdg_autostart_DATA:.desktop=.desktop.in)
+$(xdg_autostart_DATA): $(xdg_autostart_in)
+ $(AM_V_GEN) $(SED) -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+BUILT_SOURCES += $(xdg_autostart_DATA)
+CLEANFILES += $(xdg_autostart_DATA)
+EXTRA_DIST += $(xdg_autostart_in)
+
diff --git a/data/upstart/indicator-power.desktop.in b/data/upstart/indicator-power.desktop.in
new file mode 100644
index 0000000..08ce2fa
--- /dev/null
+++ b/data/upstart/indicator-power.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Indicator Power
+Exec=@pkglibexecdir@/indicator-power-service
+OnlyShowIn=Unity;
+NoDisplay=true
+StartupNotify=false
+Terminal=false
+Hidden=true