kcm_sddm/remove-wayland-suffix.patch
Fabian Vogt 571165f961 - Amend 0001-Replace-autologin-configuration-with-a-note-to-use-Y.patch
to improve the replacement message
- Add patch to not show duplicate "(Wayland)" prefixes:
  * 0001-Replace-autologin-configuration-with-a-note-to-use-Y.patch

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kcm_sddm?expand=0&rev=154
2018-05-14 07:52:48 +00:00

20 lines
948 B
Diff

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="))