Merge lp:~gilir/user-setup/lp-546445 into lp:~ubuntu-core-dev/user-setup/ubuntu

Proposed by Julien Lavergne
Status: Merged
Merged at revision: 228
Proposed branch: lp:~gilir/user-setup/lp-546445
Merge into: lp:~ubuntu-core-dev/user-setup/ubuntu
Diff against target: 41 lines (+24/-0)
2 files modified
debian/changelog (+6/-0)
user-setup-apply (+18/-0)
To merge this branch: bzr merge lp:~gilir/user-setup/lp-546445
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+41510@code.launchpad.net

Description of the change

Add auto-login support when lxdm is installed

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Makes sense - thanks a lot! Merging.

Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-10-04 11:41:38 +0000
3+++ debian/changelog 2010-11-22 20:29:42 +0000
4@@ -1,3 +1,9 @@
5+user-setup (1.28ubuntu11) UNRELEASED; urgency=low
6+
7+ * Add support for autologin when lxdm is installed (LP: #546445)
8+
9+ -- Julien Lavergne <gilir@ubuntu.com> Mon, 22 Nov 2010 19:56:37 +0100
10+
11 user-setup (1.28ubuntu10) maverick; urgency=low
12
13 * Fix syntax error introduced in 1.28ubuntu9.
14
15=== modified file 'user-setup-apply'
16--- user-setup-apply 2010-10-04 11:40:47 +0000
17+++ user-setup-apply 2010-11-22 20:29:42 +0000
18@@ -275,6 +275,24 @@
19 -e "s/^#?AutoReLogin=.*\$/AutoReLogin=true/" \
20 /etc/kde4/kdm/kdmrc
21 fi
22+
23+ if $chroot $ROOT [ -f /etc/lxdm/lxdm.conf ]; then
24+ # Configure LXDM autologin with LXDE session
25+ $log $chroot $ROOT sed -i$BACKUP -r \
26+ -e "s/^# autologin=dgod/autologin=$USER/" \
27+ -e "s/^# session/session/" \
28+ /etc/lxdm/lxdm.conf
29+ fi
30+
31+ if $chroot $ROOT [ -f /etc/xdg/lubuntu/lxdm/lxdm.conf ]; then
32+ # Configure LXDM autologin with Lubuntu session
33+ $log $chroot $ROOT sed -i$BACKUP -r \
34+ -e "s/^# autologin=dgod/autologin=$USER/" \
35+ -e "s/^# session/session/" \
36+ -e "s/startlxde/startlubuntu/" \
37+ /etc/xdg/lubuntu/lxdm/lxdm.conf
38+ fi
39+
40 fi
41 fi
42

Subscribers

People subscribed via source and target branches

to all changes: