Bug#921921: live-config: Buster Live LXQt does not autologin
Package: live-config
Version: 5.20180224
Severity: normal
Tags: patch
Live Systems Maintainers,
Buster Live LXQt does not autologin.
journalctl -p2 says:
sddm[889]: Unable to find autologin session entry "plasma.desktop"
/etc/sddm.conf:
[Autologin]
User=user
Session=plasma.desktop
This is correct for KDE, but for LXQt it should be:
[Autologin]
User=user
Session=lxqt.desktop
An *untested* patch is attached which sets the Session based on
which alternative /usr/bin/x-session-manager links to.
Thank you!
Daniel Lewart
--- a/components/0085-sddm 2018-11-25 10:08:19.000000000 -0600
+++ b/components/0085-sddm 2019-02-10 00:00:00.000000000 -0600
@@ -62,10 +62,21 @@
# autologin
if [ -n "${LIVE_USERNAME}" ]
then
+ LIVE_X_SESSION_MANAGER=$(realpath /usr/bin/x-session-manager)
+ case "${LIVE_X_SESSION_MANAGER}" in
+ /usr/bin/startkde)
+ LIVE_SESSION="plasma.desktop"
+ ;;
+
+ /usr/bin/startlxqt)
+ LIVE_SESSION="lxqt.desktop"
+ ;;
+ esac
+
cat > /etc/sddm.conf << EOF
[Autologin]
User=${LIVE_USERNAME}
-Session=plasma.desktop
+Session=${LIVE_SESSION}
EOF
fi
Reply to: