Merge lp:~bregma/unity8-desktop-session/lp-1276855 into lp:~bregma/unity8-desktop-session/trunk

Proposed by Stephen M. Webb
Status: Merged
Approved by: Stephen M. Webb
Approved revision: 26
Merged at revision: 26
Proposed branch: lp:~bregma/unity8-desktop-session/lp-1276855
Merge into: lp:~bregma/unity8-desktop-session/trunk
Diff against target: 26 lines (+6/-4)
1 file modified
data/unity8-mir.conf.in (+6/-4)
To merge this branch: bzr merge lp:~bregma/unity8-desktop-session/lp-1276855
Reviewer Review Type Date Requested Status
Stephen M. Webb Pending
Review via email: mp+205061@code.launchpad.net

Commit message

data/unity8-mir.conf.in: propagate key environment variables to spawned upstart jobs (lp: #1276855)

Description of the change

Propagates key environment variables to spawned jobs so they don't try to connect to the X11 server or the Dalvik runtime.

To post a comment you must log in.
Revision history for this message
Stephen M. Webb (bregma) wrote :

Verified manually on test machines.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/unity8-mir.conf.in'
2--- data/unity8-mir.conf.in 2014-01-16 15:53:00 +0000
3+++ data/unity8-mir.conf.in 2014-02-05 23:33:30 +0000
4@@ -7,10 +7,7 @@
5 expect stop
6
7 env QT_QPA_PLATFORM=ubuntumirserver
8-env EGL_PLATFORM=mir
9-env UBUNTU_PLATFORM_API_BACKEND=libubuntu_application_api_test.so.1
10-env UBUNTU_PLATFORM_API_SENSOR_TEST=@PKGDATA_DIR@/sensors.txt
11-env QML2_IMPORT_PATH=@LIB_DIR@/qt5/imports/Unity-Mir
12+env UPSTART_JOB=unity8
13
14 pre-start script
15 if [ -n "$MIR_SOCKET" ]; then
16@@ -29,6 +26,11 @@
17 # Point all future jobs in this session to our Mir socket instead of
18 # unity-system-compositor's socket.
19 initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
20+ initctl set-env --global QT_QPA_PLATFORM=ubuntumirclient
21+ initctl set-env --global EGL_PLATFORM=mir
22+ initctl set-env --global UBUNTU_PLATFORM_API_BACKEND=libubuntu_application_api_test.so.1
23+ initctl set-env --global UBUNTU_PLATFORM_API_SENSOR_TEST=@PKGDATA_DIR@/sensors.txt
24+ initctl set-env --global QML2_IMPORT_PATH=@LIB_DIR@/qt5/imports/Unity-Mir
25 fi
26 end script
27

Subscribers

People subscribed via source and target branches

to all changes: