From cae7f2e16061571e6ababb4e1782d52dcac6e50b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 10 Aug 2020 13:14:06 +0200 Subject: Start indicator in systemd when ayatana-indicators.target is started. Fixes AyatanaIndicators/ayatana-indicator-messages#10. --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f446f43..573979c 100644 --- a/configure.ac +++ b/configure.ac @@ -62,6 +62,19 @@ AC_ARG_WITH([indicator-dir], [with_indicator_dir=$datadir/ayatana/indicators]) AC_SUBST([INDICATOR_DIR], [$with_indicator_dir]) +######################### +# Check for systemd +######################### +PKG_CHECK_MODULES(SYSTEMD, systemd, + [has_systemd=yes], + [] +) +if test "x$has_systemd" = "xyes"; then + SYSTEMD_USERDIR=`$PKG_CONFIG --variable=systemduserunitdir systemd` + AC_SUBST(SYSTEMD_USERDIR) + AC_DEFINE(HAVE_SYSTEMD, 1, [create ayatana-indicator-application.service for systemd]) +fi + ########################### # gcov coverage reporting ########################### -- cgit v1.2.3