kcm_sddm/remove-wayland-suffix.patch

25 lines
1.1 KiB
Diff

From: Fabian Vogt <fabian@ritter-vogt.de>
Subject: Don't add a (Wayland) suffix to Wayland sessions
It got removed from sddm as well.
Index: sddm-kcm-5.12.5/src/sessionmodel.cpp
===================================================================
--- sddm-kcm-5.12.5.orig/src/sessionmodel.cpp
+++ sddm-kcm-5.12.5/src/sessionmodel.cpp
@@ -81,13 +81,8 @@ void SessionModel::loadDir(const QString
if (current_section != QLatin1String("Desktop Entry"))
continue; // We are only interested in the "Desktop Entry" section
- if (line.startsWith("Name=")) {
+ if (line.startsWith("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("Exec="))
si->exec = line.mid(5);
if (line.startsWith("Comment="))