Merge lp:~3v1n0/unity/always-use-upstart into lp:unity

Proposed by Marco Trevisan (Treviño)
Status: Work in progress
Proposed branch: lp:~3v1n0/unity/always-use-upstart
Merge into: lp:unity
Diff against target: 23 lines (+0/-11)
1 file modified
debian/unity7.conf (+0/-11)
To merge this branch: bzr merge lp:~3v1n0/unity/always-use-upstart
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Brandon Schaefer (community) Approve
Review via email: mp+216233@code.launchpad.net

Commit message

Unity7.conf: Always use upstart to launch compiz

Description of the change

We should always use upstart to launch compiz, as it really respawn always.

To post a comment you must log in.
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

LGTM

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Mh, it seems that doing this might cause some env variables set by the autostart tools launched by gnome-session (i.e. gnome-keyring-daemon) not to be inherited by unity (while they work on terminal launched by ctrl+alt+t by unity-settings-daemon)...

Revision history for this message
Andrea Azzarone (azzar1) wrote :

Can you test this again? I'm attaching the diff between the output of "env" command launched from two different terminals (one launched using ctrl+alt+t, the other using unity):

8c8
< TERMINATOR_UUID=urn:uuid:bf5b3d1b-8327-4562-b5f9-698543f14588
---
> TERMINATOR_UUID=urn:uuid:6b7fbcf5-eb9e-4eae-8348-6a442e9e374b
9a10,11
> SESSION=ubuntu
> GIO_LAUNCHED_DESKTOP_FILE_PID=19234
13c15
< WINDOWID=58720260
---
> WINDOWID=62914564
24a27
> GIO_LAUNCHED_DESKTOP_FILE=/home/andrea/.local/share/applications/x-terminal-emulator.desktop
33c36
< JOB=gnome-session
---
> JOB=unity-settings-daemon
51c54
< UPSTART_EVENTS=started starting
---
> UPSTART_EVENTS=xsession started
53a57
> COMPIZ_BIN_PATH=/usr/bin/
58,59c62,63
< INSTANCE=Unity
< UPSTART_JOB=unity-settings-daemon
---
> INSTANCE=
> UPSTART_JOB=unity7

It seems fine to me? Can you confirm? Would be nice to have this fixed.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Yep, there are some minor changes to apply to gnome-session to get this properly working. I've something almost ready.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/unity7.conf'
2--- debian/unity7.conf 2014-02-10 12:34:09 +0000
3+++ debian/unity7.conf 2014-04-17 01:11:38 +0000
4@@ -4,19 +4,8 @@
5 start on xsession SESSION=ubuntu and (started gnome-settings-daemon or started unity-settings-daemon)
6 stop on desktop-end
7
8-pre-start script
9- # If gnome-session is going to start compiz,
10- # we don't want to be the ones doing it.
11-
12- if grep -q compiz /usr/share/gnome-session/sessions/ubuntu.session ; then
13- echo "GNOME Session is starting Compiz"
14- stop ; exit 0
15- fi
16-end script
17-
18 env COMPIZ_CONFIG_PROFILE="ubuntu"
19 export COMPIZ_CONFIG_PROFILE
20
21 respawn
22 exec compiz
23-