aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/indicator-application.conf.in14
1 files changed, 10 insertions, 4 deletions
diff --git a/data/indicator-application.conf.in b/data/indicator-application.conf.in
index c06c705..74ef5eb 100644
--- a/data/indicator-application.conf.in
+++ b/data/indicator-application.conf.in
@@ -1,9 +1,6 @@
description "Indicator Application Service"
-# NOTE: Limiting only to Unity 7 right now as it's still using
-# dbusmenu. That can be lifted after it is ported to GMenu
-
-start on indicator-services-start and xsession SESSION!=ubuntu-touch
+start on indicator-services-start
stop on desktop-end or indicator-services-end
emits appindicators-start appindicators-end
@@ -11,6 +8,15 @@ emits appindicators-start appindicators-end
respawn
respawn limit 2 10
+pre-start script
+ # NOTE: Limiting only to Unity 7 right now as it's still using
+ # dbusmenu. That can be lifted after it is ported to GMenu
+
+ if [ "x$DESKTOP_SESSION" == "xubuntu-touch" ] ; then
+ stop; exit 0
+ fi
+end script
+
exec @pkglibexecdir@/indicator-application-service
pre-stop exec initctl emit appindicators-end