[neon/3rdparty/sddm/Neon/release-lts] debian: Try to convert saved session info to new format (Closes: #973907)

Norbert Preining null at kde.org
Tue Mar 9 12:45:42 GMT 2021


Git commit a1c516b118837aef24a7527a8e7edc84f89ff56d by Norbert Preining.
Committed on 07/11/2020 at 14:11.
Pushed by sitter into branch 'Neon/release-lts'.

Try to convert saved session info to new format (Closes: #973907)

M  +7    -0    debian/changelog
M  +4    -0    debian/sddm.postinst

https://invent.kde.org/neon/3rdparty/sddm/commit/a1c516b118837aef24a7527a8e7edc84f89ff56d

diff --git a/debian/changelog b/debian/changelog
index d94ff7b..9d62e54 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+sddm (0.19.0-2) UNRELEASED; urgency=medium
+
+  [ Norbert Preining ]
+  * Try to convert saved session info to new format (Closes: #973907)
+
+ -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Sat, 07 Nov 2020 23:10:17 +0900
+
 sddm (0.19.0-1) unstable; urgency=medium
 
   [ Aurélien COUDERC ]
diff --git a/debian/sddm.postinst b/debian/sddm.postinst
index 694e669..d294d58 100644
--- a/debian/sddm.postinst
+++ b/debian/sddm.postinst
@@ -28,6 +28,10 @@ if [ ! -e /var/lib/sddm ]; then
 fi
 
 if [ -d /var/lib/sddm ]; then
+    if [ -r /var/lib/sddm/state.conf ] ; then
+        sed -i 's!^Session=/usr/share/xsessions/!Session=!' /var/lib/sddm/state.conf
+        chown sddm:sddm /var/lib/sddm/state.conf
+    fi
     # There has been a -R in version prior to 0.19
     # but this opens up symlink attacks. Remove it.
     chown sddm:sddm /var/lib/sddm



More information about the Neon-commits mailing list