[neon/3rdparty/sddm/Neon/release] /: add patch

Jonathan Esk-Riddell null at kde.org
Tue Aug 16 11:38:32 BST 2022


Git commit 9ded16b02dcc7251c02624ee9086ff2e6283d655 by Jonathan Esk-Riddell.
Committed on 16/08/2022 at 10:38.
Pushed by jriddell into branch 'Neon/release'.

add patch

A  +25   -0    upstream-2f034906d-use-only-basename-of-session.patch

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

diff --git a/upstream-2f034906d-use-only-basename-of-session.patch b/upstream-2f034906d-use-only-basename-of-session.patch
new file mode 100644
index 0000000..cc6553f
--- /dev/null
+++ b/upstream-2f034906d-use-only-basename-of-session.patch
@@ -0,0 +1,25 @@
+From 2f034906ded7df6542a350bcc914f4ec808acbb0 Mon Sep 17 00:00:00 2001
+From: Fabian Vogt <fabian at ritter-vogt.de>
+Date: Mon, 9 Nov 2020 11:22:15 +0100
+Subject: [PATCH] Only use the base name for $DESKTOP_SESSION
+
+Other DMs don't use the path.
+
+Fixes #852
+---
+ src/common/Session.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/common/Session.cpp b/src/common/Session.cpp
+index 2d7b04f1..3de28ef1 100644
+--- a/src/common/Session.cpp
++++ b/src/common/Session.cpp
+@@ -89,7 +89,7 @@ namespace SDDM {
+ 
+     QString Session::desktopSession() const
+     {
+-        return fileName().replace(s_entryExtention, QString());
++        return QFileInfo(m_fileName).completeBaseName();
+     }
+ 
+     QString Session::desktopNames() const


More information about the Neon-commits mailing list