Merge lp:~ted/indicator-application/startup-cleanup into lp:indicator-application/14.04

Proposed by Ted Gould
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 257
Merged at revision: 251
Proposed branch: lp:~ted/indicator-application/startup-cleanup
Merge into: lp:indicator-application/14.04
Diff against target: 41 lines (+12/-5)
2 files modified
data/indicator-application.conf.in (+10/-4)
data/indicator-application.desktop.in (+2/-1)
To merge this branch: bzr merge lp:~ted/indicator-application/startup-cleanup
Reviewer Review Type Date Requested Status
Colin Watson Needs Fixing
Sebastien Bacher Approve
Review via email: mp+212726@code.launchpad.net

Commit message

Fix the upstart job and desktop config for GNOME2

Description of the change

Think we missed a couple revisions and a fix for greeter.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

looks good, thanks

review: Approve
Revision history for this message
Colin Watson (cjwatson) wrote :

[ "x$DESKTOP_SESSION" == "xubuntu-touch" ] is a bashism and fails in our default /bin/sh:

  sh: 2: [: xubuntu: unexpected operator

Please use the = operator instead of ==; there's no benefit to using == here.

review: Needs Fixing
258. By Ted Gould

Switching to single equals

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/indicator-application.conf.in'
2--- data/indicator-application.conf.in 2014-02-20 03:31:05 +0000
3+++ data/indicator-application.conf.in 2014-04-07 13:34:07 +0000
4@@ -1,9 +1,6 @@
5 description "Indicator Application Service"
6
7-# NOTE: Limiting only to Unity 7 right now as it's still using
8-# dbusmenu. That can be lifted after it is ported to GMenu
9-
10-start on indicator-services-start and xsession SESSION=ubuntu
11+start on indicator-services-start
12 stop on desktop-end or indicator-services-end
13
14 emits appindicators-start appindicators-end
15@@ -11,6 +8,15 @@
16 respawn
17 respawn limit 2 10
18
19+pre-start script
20+ # NOTE: Limiting only to Unity 7 right now as it's still using
21+ # dbusmenu. That can be lifted after it is ported to GMenu
22+
23+ if [ "x$DESKTOP_SESSION" = "xubuntu-touch" ] ; then
24+ stop; exit 0
25+ fi
26+end script
27+
28 exec @pkglibexecdir@/indicator-application-service
29
30 pre-stop exec initctl emit appindicators-end
31
32=== modified file 'data/indicator-application.desktop.in'
33--- data/indicator-application.desktop.in 2014-02-20 03:31:05 +0000
34+++ data/indicator-application.desktop.in 2014-04-07 13:34:07 +0000
35@@ -4,4 +4,5 @@
36 Exec=@pkglibexecdir@/indicator-application-service
37 StartupNotify=false
38 Terminal=false
39-OnlyShowIn=Unity;XFCE;
40+OnlyShowIn=Unity;XFCE;GNOME;
41+AutostartCondition=GNOME3 unless-session gnome

Subscribers

People subscribed via source and target branches