26 lines
752 B
Diff
26 lines
752 B
Diff
|
From 5fd5ed271a0e5b8c8857cc4f5f2084d43fd228f1 Mon Sep 17 00:00:00 2001
|
||
|
From: Fabian Vogt <fabian@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
|