2021-01-24 22:11:02 +01:00
|
|
|
From bb0c90b0a7c9f0a1a76b3f71fa802ae2050a87b2 Mon Sep 17 00:00:00 2001
|
2018-05-14 09:57:47 +02:00
|
|
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
2018-09-15 14:29:39 +02:00
|
|
|
Date: Sat, 7 Jul 2018 20:34:44 +0200
|
2019-09-20 13:01:13 +02:00
|
|
|
Subject: [PATCH 3/3] Don't add a (Wayland) suffix to Wayland sessions
|
2018-05-14 09:57:47 +02:00
|
|
|
|
|
|
|
It got removed from sddm as well.
|
2018-09-15 14:29:39 +02:00
|
|
|
---
|
2021-01-24 22:11:02 +01:00
|
|
|
src/sessionmodel.cpp | 8 +-------
|
|
|
|
1 file changed, 1 insertion(+), 7 deletions(-)
|
2018-05-14 09:57:47 +02:00
|
|
|
|
2018-09-15 14:29:39 +02:00
|
|
|
diff --git a/src/sessionmodel.cpp b/src/sessionmodel.cpp
|
2021-01-24 22:11:02 +01:00
|
|
|
index 50e22d4..e756a9b 100644
|
2018-09-15 14:29:39 +02:00
|
|
|
--- a/src/sessionmodel.cpp
|
|
|
|
+++ b/src/sessionmodel.cpp
|
2021-01-24 22:11:02 +01:00
|
|
|
@@ -61,6 +61,7 @@ SessionModel::~SessionModel()
|
2019-09-20 13:01:13 +02:00
|
|
|
|
|
|
|
void SessionModel::loadDir(const QString &path, SessionType type)
|
|
|
|
{
|
|
|
|
+ Q_UNUSED(type);
|
|
|
|
QDir dir(path);
|
|
|
|
dir.setNameFilters(QStringList() << QStringLiteral("*.desktop"));
|
|
|
|
dir.setFilter(QDir::Files);
|
2021-01-24 22:11:02 +01:00
|
|
|
@@ -91,13 +92,6 @@ void SessionModel::loadDir(const QString &path, SessionType type)
|
2018-05-14 09:52:48 +02:00
|
|
|
|
2021-01-24 22:11:02 +01:00
|
|
|
if (line.startsWith(QLatin1String("Name="))) {
|
2018-05-14 09:52:48 +02:00
|
|
|
si->name = line.mid(5);
|
|
|
|
- if (type == SessionTypeWayland) {
|
2020-02-19 11:14:36 +01:00
|
|
|
- // we want to exactly match the SDDM prompt which is formatted in this way
|
|
|
|
- // with the exact same check
|
|
|
|
- if (!si->name.endsWith(QLatin1String(" (Wayland)"))) {
|
|
|
|
- si->name = i18nc("%1 is the name of a session", "%1 (Wayland)", si->name);
|
|
|
|
- }
|
2018-05-14 09:52:48 +02:00
|
|
|
- }
|
2021-01-24 22:11:02 +01:00
|
|
|
}
|
|
|
|
if (line.startsWith(QLatin1String("Exec="))) {
|
2018-05-14 09:52:48 +02:00
|
|
|
si->exec = line.mid(5);
|
2018-09-15 14:29:39 +02:00
|
|
|
--
|
2021-01-24 22:11:02 +01:00
|
|
|
2.25.1
|
2018-09-15 14:29:39 +02:00
|
|
|
|