Merge lp:~joern-schoenyan/user-setup/ubuntu into lp:~ubuntu-core-dev/user-setup/ubuntu

Proposed by Jörn Schönyan
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 284
Merged at revision: 284
Proposed branch: lp:~joern-schoenyan/user-setup/ubuntu
Merge into: lp:~ubuntu-core-dev/user-setup/ubuntu
Diff against target: 28 lines (+12/-2)
1 file modified
user-setup-apply (+12/-2)
To merge this branch: bzr merge lp:~joern-schoenyan/user-setup/ubuntu
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
Review via email: mp+249309@code.launchpad.net

Description of the change

Please review my fix for the SDDM autologin when something else as Plasma desktop is used. It checks for plasma.desktop, Lubuntu.desktop and lxqt.desktop in /usr/share/xsessions and falls back to the first found .desktop file if none of them exist. Thank you very much!

To post a comment you must log in.
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Is there a bug for this issue? It seems to me like this would be easier to track with a bug report; which could be closed in changelog at the same time.

review: Needs Information
Revision history for this message
Jörn Schönyan (joern-schoenyan) wrote :
Revision history for this message
Jörn Schönyan (joern-schoenyan) wrote :

Any news on this?

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Looks fine, I will merge this now.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'user-setup-apply'
2--- user-setup-apply 2014-09-16 12:55:05 +0000
3+++ user-setup-apply 2015-02-11 12:04:46 +0000
4@@ -310,12 +310,22 @@
5 fi
6
7 if $chroot $ROOT [ -f /usr/bin/sddm ]; then
8- # Configure SDDM autologin with plasma 5 session
9+ # Configure SDDM autologin with an appropiate session
10 $log $chroot $ROOT /bin/sh -c "cat > /etc/sddm.conf" << EOF
11 [Autologin]
12 User=$USER
13-Session=plasma.desktop
14+Session=PLACEHOLDER
15 EOF
16+ if $chroot $ROOT [ -f /usr/share/xsessions/plasma.desktop ]; then
17+ sed -i 's/PLACEHOLDER/plasma.desktop/' /etc/sddm.conf
18+ elif $chroot $ROOT [ -f /usr/share/xsessions/Lubuntu.desktop ]; then
19+ sed -i 's/PLACEHOLDER/Lubuntu.desktop/' /etc/sddm.conf
20+ elif $chroot $ROOT [ -f /usr/share/xsessions/lxqt.desktop ]; then
21+ sed -i 's/PLACEHOLDER/lxqt.desktop/' /etc/sddm.conf
22+ else #fallback if some other DE/WM is used
23+ SDDMSESSION=$(ls /usr/share/xsessions | head -1)
24+ sed -i "s/PLACEHOLDER/$SDDMSESSION/" sddm.conf
25+ fi
26 fi
27 if $chroot $ROOT [ -d /etc/lightdm ]; then
28 # Configure LightDM autologin

Subscribers

People subscribed via source and target branches

to all changes: