From 4913289a34ce6088ec06d7f32a55f0638e4c2da5 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 29 Oct 2013 09:29:22 -0700 Subject: Add in the autostart config --- data/Makefile.am | 13 +++++++++++++ data/indicator-power.desktop.in | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 data/indicator-power.desktop.in diff --git a/data/Makefile.am b/data/Makefile.am index 9aed4e3..9a4caca 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -22,6 +22,19 @@ BUILT_SOURCES += $(upstart_jobs_DATA) CLEANFILES += $(upstart_jobs_DATA) EXTRA_DIST += $(upstart_jobs_in) +# +# the xdg autostart job file +# + +xdg_autostartdir = /etc/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) + # # the gettings # diff --git a/data/indicator-power.desktop.in b/data/indicator-power.desktop.in new file mode 100644 index 0000000..28025a2 --- /dev/null +++ b/data/indicator-power.desktop.in @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Indicator Power +Exec=@pkglibexecdir@/indicator-power-service +NotShowIn=Unity; +NoDisplay=true +StartupNotify=false +Terminal=false + -- cgit v1.2.3