[neon/3rdparty/sddm/Neon/unstable] debian: let's try to force x11 for new installations
Harald Sitter
null at kde.org
Fri Feb 26 11:33:54 GMT 2021
Git commit c3316aee02591b094c9fe6dd887d8ef3e19b5bec by Harald Sitter.
Committed on 26/02/2021 at 11:32.
Pushed by sitter into branch 'Neon/unstable'.
let's try to force x11 for new installations
this is in prepration for pulling in a new sddm relese that bricked
default session selection from a Plasma POV since we distinctly do not
consider wayland the primary session for now.
M +15 -0 debian/sddm.postinst
https://invent.kde.org/neon/3rdparty/sddm/commit/c3316aee02591b094c9fe6dd887d8ef3e19b5bec
diff --git a/debian/sddm.postinst b/debian/sddm.postinst
index e5c350f..373d7b5 100644
--- a/debian/sddm.postinst
+++ b/debian/sddm.postinst
@@ -35,6 +35,21 @@ if [ -d /var/lib/sddm ] && [ ! -d /var/lib/sddm/.config/systemd/user/ ]; then
ln -s /dev/null /var/lib/sddm/.config/systemd/user/pulseaudio.service
fi
+if [ ! -e /var/lib/sddm/state.conf ]; then
+ # Default to X11!
+ # https://github.com/sddm/sddm/issues/1358
+ # We hardcode plasma since if it should not be installed for whatever
+ # reason sddm will pick another session on its own anyway.
+ # Existing installations will have a state.conf already and consequently
+ # not get this block executed at all.
+ cat << CONF > /var/lib/sddm/state.conf
+[Last]
+Session=/usr/share/xsessions/plasma.desktop
+CONF
+ chmod 0644 /var/lib/sddm/state.conf
+ # chown is recursively done below
+fi
+
if [ -d /var/lib/sddm ]; then
chown -R sddm:sddm /var/lib/sddm
chmod 0750 /var/lib/sddm
More information about the Neon-commits
mailing list