diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-08-10 13:14:06 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-08-10 13:27:02 +0200 |
commit | cae7f2e16061571e6ababb4e1782d52dcac6e50b (patch) | |
tree | ef2a31f73103a0960f4c2b91a95e9a4f505171df /data | |
parent | ae2dcd9a3405793a7c4b75ef987009fab540d0ae (diff) | |
download | ayatana-indicator-messages-cae7f2e16061571e6ababb4e1782d52dcac6e50b.tar.gz ayatana-indicator-messages-cae7f2e16061571e6ababb4e1782d52dcac6e50b.tar.bz2 ayatana-indicator-messages-cae7f2e16061571e6ababb4e1782d52dcac6e50b.zip |
Start indicator in systemd when ayatana-indicators.target is started.
Fixes AyatanaIndicators/ayatana-indicator-messages#10.
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 17 | ||||
-rw-r--r-- | data/ayatana-indicator-messages.service.in | 11 |
2 files changed, 27 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index ff45ba2..b88aee5 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,3 +1,5 @@ +NULL = + SUBDIRS = icons xdg_autostartdir = /etc/xdg/autostart @@ -9,12 +11,25 @@ xdg_autostart_DATA = ayatana-indicator-messages.desktop gsettings_SCHEMAS = org.ayatana.indicator.messages.gschema.xml @GSETTINGS_RULES@ +#if defined(HAVE_SYSTEMD) +systemdservice_file = ayatana-indicator-messages.service +$(systemdservice_file): $(systemdservice_file).in + $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@ + +systemddir = $(SYSTEMD_USERDIR) +systemd_DATA = $(systemdservice_file) +#endif + indicatordir = $(INDICATOR_DIR) dist_indicator_DATA = org.ayatana.indicator.messages EXTRA_DIST = \ ayatana-indicator-messages.desktop.in \ - $(gsettings_SCHEMAS) + $(gsettings_SCHEMAS) \ + $(systemdservice_file).in \ + $(NULL) CLEANFILES = \ $(xdg_autostart_DATA) \ + $(systemdservice_file) \ + $(NULL) diff --git a/data/ayatana-indicator-messages.service.in b/data/ayatana-indicator-messages.service.in new file mode 100644 index 0000000..a0a3ba0 --- /dev/null +++ b/data/ayatana-indicator-messages.service.in @@ -0,0 +1,11 @@ +[Unit] +Description=Ayatana Indicator Messages Service +PartOf=graphical-session.target +PartOf=ayatana-indicators.target + +[Service] +ExecStart=@pkglibexecdir@/ayatana-indicator-messages-service +Restart=on-failure + +[Install] +WantedBy=ayatana-indicators.target |