35b13ca028
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kcm_sddm?expand=0&rev=171
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
From c6fda4bb877a71687b37e6a19f9daf7298e32f98 Mon Sep 17 00:00:00 2001
|
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
|
Date: Sat, 7 Jul 2018 20:34:44 +0200
|
|
Subject: [PATCH] Don't add a (Wayland) suffix to Wayland sessions
|
|
|
|
It got removed from sddm as well.
|
|
---
|
|
src/sessionmodel.cpp | 7 +------
|
|
1 file changed, 1 insertion(+), 6 deletions(-)
|
|
|
|
diff --git a/src/sessionmodel.cpp b/src/sessionmodel.cpp
|
|
index ff63dbd..eeb962c 100644
|
|
--- a/src/sessionmodel.cpp
|
|
+++ b/src/sessionmodel.cpp
|
|
@@ -81,13 +81,8 @@ void SessionModel::loadDir(const QString &path, SessionType type)
|
|
if (current_section != QLatin1String("Desktop Entry"))
|
|
continue; // We are only interested in the "Desktop Entry" section
|
|
|
|
- if (line.startsWith(QLatin1String("Name="))) {
|
|
+ if (line.startsWith(QLatin1String("Name=")))
|
|
si->name = line.mid(5);
|
|
- if (type == SessionTypeWayland) {
|
|
- //we want to exactly match the SDDM prompt which is formatted in this way
|
|
- si->name = i18nc("%1 is the name of a session", "%1 (Wayland)", si->name);
|
|
- }
|
|
- }
|
|
if (line.startsWith(QLatin1String("Exec=")))
|
|
si->exec = line.mid(5);
|
|
if (line.startsWith(QLatin1String("Comment=")))
|
|
--
|
|
2.17.1
|
|
|