Merge lp:~bregma/unity8-desktop-session/lp-1300921 into lp:unity8-desktop-session

Proposed by Stephen M. Webb
Status: Merged
Merged at revision: 45
Proposed branch: lp:~bregma/unity8-desktop-session/lp-1300921
Merge into: lp:unity8-desktop-session
Diff against target: 16 lines (+5/-1)
1 file modified
data/unity8-mir.conf.in (+5/-1)
To merge this branch: bzr merge lp:~bregma/unity8-desktop-session/lp-1300921
Reviewer Review Type Date Requested Status
Unity 8 Desktop Session Pending
Review via email: mp+213912@code.launchpad.net

Commit message

propagate the QT_QPA_PLATFORM to session services started through D-Bus

Description of the change

Propagate the QT_QPA_PLATFORM to session services started through D-Bus.

To post a comment you must log in.
Revision history for this message
Alberto Mardegan (mardy) wrote :

I think you should be able to add both variables in a single D-Bus call:

gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus \
  --method org.freedesktop.DBus.UpdateActivationEnvironment \
  "@a{ss} {'QT_QPA_PLATFORM': 'ubuntumirclient', 'MIR_SOCKET': '$MIR_SERVER_FILE'}"

46. By Stephen M. Webb

consolidate D-Bus env push command

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/unity8-mir.conf.in'
--- data/unity8-mir.conf.in 2014-03-28 17:09:40 +0000
+++ data/unity8-mir.conf.in 2014-04-02 20:27:31 +0000
@@ -35,7 +35,11 @@
35 initctl set-env --global QML2_IMPORT_PATH=@LIB_DIR@/qt5/imports/Unity-Mir35 initctl set-env --global QML2_IMPORT_PATH=@LIB_DIR@/qt5/imports/Unity-Mir
36 initctl set-env --global UNITY_INDICATOR_PROFILE=desktop36 initctl set-env --global UNITY_INDICATOR_PROFILE=desktop
3737
38 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"38 gdbus call --session \
39 --dest org.freedesktop.DBus \
40 --object-path /org/freedesktop/DBus \
41 --method org.freedesktop.DBus.UpdateActivationEnvironment \
42 "@a{ss} {'QT_QPA_PLATFORM': 'ubuntumirclient', 'MIR_SOCKET': '$MIR_SERVER_FILE'}"
39 fi43 fi
4044
41 if [ -z "$UNITY_SCOPES_LIST" ]; then45 if [ -z "$UNITY_SCOPES_LIST" ]; then

Subscribers

People subscribed via source and target branches