From 3bcbc85d8cda75d56101123ee9daf261b15c90fb Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 20 Feb 2014 10:04:19 -0600 Subject: Adding in XDG autostart and Upstart job files --- data/Makefile.am | 32 ++++++++++++++++++++++++++++++++ data/indicator-printers.conf.in | 9 +++++++++ data/indicator-printers.desktop.in | 8 ++++++++ 3 files changed, 49 insertions(+) create mode 100644 data/indicator-printers.conf.in create mode 100644 data/indicator-printers.desktop.in diff --git a/data/Makefile.am b/data/Makefile.am index 139597f..de18ae7 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,2 +1,34 @@ +BUILT_SOURCES= +CLEANFILES= +EXTRA_DIST= + +#SUBDIRS = upstart + +# +# the upstart job file +# + +upstart_jobsdir = $(datadir)/upstart/sessions +upstart_jobs_DATA = indicator-printers.conf +upstart_jobs_in = $(upstart_jobs_DATA:.conf=.conf.in) +$(upstart_jobs_DATA): $(upstart_jobs_in) + $(AM_V_GEN) $(SED) -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@ +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-printers.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/indicator-printers.conf.in b/data/indicator-printers.conf.in new file mode 100644 index 0000000..665fb35 --- /dev/null +++ b/data/indicator-printers.conf.in @@ -0,0 +1,9 @@ +description "Indicator Power Service" + +start on indicator-services-start +stop on desktop-end or indicator-services-end + +respawn +respawn limit 2 10 + +exec @pkglibexecdir@/indicator-power-service diff --git a/data/indicator-printers.desktop.in b/data/indicator-printers.desktop.in new file mode 100644 index 0000000..3b93d08 --- /dev/null +++ b/data/indicator-printers.desktop.in @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Indicator Power +Exec=@pkglibexecdir@/indicator-power-service +OnlyShowIn=Unity; +NoDisplay=true +StartupNotify=false +Terminal=false -- cgit v1.2.3