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

Proposed by Stephen M. Webb
Status: Merged
Approved by: Christopher Townsend
Approved revision: 95
Merged at revision: 92
Proposed branch: lp:~bregma/unity8-desktop-session/lp-1590439
Merge into: lp:unity8-desktop-session
Diff against target: 29 lines (+19/-0)
1 file modified
data/lightdm-unity8-session (+19/-0)
To merge this branch: bzr merge lp:~bregma/unity8-desktop-session/lp-1590439
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
Review via email: mp+299755@code.launchpad.net

Commit message

load /etc/profile.d in Unity 8 desktop session

Description of the change

Load /etc/profile.d in Unity 8 desktop session.

To post a comment you must log in.
Christopher Townsend (townsend) wrote :

The Unity8 desktop session will not start with this MP. I get a blank screen and it appears unity8-dash is crashing and starting over and over again.

review: Needs Fixing
92. By Stephen M. Webb on 2016-07-12

added /home/stephenw/.profile to list of sourced profiles

Christopher Townsend (townsend) wrote :

After some investigation, it is something in this MP interfering with /etc/profile.d/appmenu-qt5.sh.

93. By Stephen M. Webb on 2016-07-23

unset QT_QPA_PLATFORMTHEME to prevent Unity 8 crashes

94. By Stephen M. Webb on 2016-07-25

Added bug tag for appmenu-qt5 workaround bug.

MichaƂ Sawicz (saviq) :
95. By Stephen M. Webb on 2016-07-26

added link to bug for appmenu-qt5 workaround in a comment

Christopher Townsend (townsend) wrote :

Yep, session loads now.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/lightdm-unity8-session'
2--- data/lightdm-unity8-session 2015-06-08 15:28:49 +0000
3+++ data/lightdm-unity8-session 2016-07-26 11:33:18 +0000
4@@ -12,6 +12,25 @@
5 touch $HOME/.config/ubuntu-system-settings/wizard-has-run
6 fi
7
8+ # Set up xdg dirs
9+ [ -z "$XDG_CONFIG_DIRS" ] && export XDG_CONFIG_DIRS=/etc/xdg
10+ [ -z "$XDG_DATA_DIRS" ] && export XDG_DATA_DIRS=/usr/local/share:/usr/share
11+ if [ -n "$DESKTOP_SESSION" ]; then
12+ export XDG_CONFIG_DIRS=/etc/xdg/xdg-$DESKTOP_SESSION:$XDG_CONFIG_DIRS
13+ export XDG_DATA_DIRS=/usr/share/$DESKTOP_SESSION:$XDG_DATA_DIRS
14+ fi
15+
16+ # Do any system-configured setup.
17+ for profile in "/etc/profile" "$HOME/.profile"; do
18+ if [ -r "$profile" ]; then
19+ . "$profile"
20+ fi
21+ done
22+
23+ # work around crashes caused by appmenu-qt5
24+ # https://bugs.launchpad.net/appmenu-qt5/+bug/1606246
25+ unset QT_QPA_PLATFORMTHEME
26+
27 export QT_QPA_PLATFORM=ubuntumirclient
28 export UNITY_INDICATOR_PROFILE=desktop
29 export UBUNTU_PLATFORM_API_BACKEND=desktop_mirclient

Subscribers

People subscribed via source and target branches