diff --git a/0001-Replace-autologin-configuration-with-a-note-to-use-Y.patch b/0001-Replace-autologin-configuration-with-a-note-to-use-Y.patch index 82366f8..95583fc 100644 --- a/0001-Replace-autologin-configuration-with-a-note-to-use-Y.patch +++ b/0001-Replace-autologin-configuration-with-a-note-to-use-Y.patch @@ -9,10 +9,10 @@ sddm looks at sysconfig for autologin and ignores other configuration files. src/ui/advanceconfig.ui | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -Index: sddm-kcm-5.12.2/src/ui/advanceconfig.ui +Index: sddm-kcm-5.12.5/src/ui/advanceconfig.ui =================================================================== ---- sddm-kcm-5.12.2.orig/src/ui/advanceconfig.ui -+++ sddm-kcm-5.12.2/src/ui/advanceconfig.ui +--- sddm-kcm-5.12.5.orig/src/ui/advanceconfig.ui ++++ sddm-kcm-5.12.5/src/ui/advanceconfig.ui @@ -45,15 +45,19 @@ QFormLayout::ExpandingFieldsGrow @@ -22,7 +22,7 @@ Index: sddm-kcm-5.12.2/src/ui/advanceconfig.ui - User: -+ Autologin needs to be configured using YaST or by editing /etc/sysconfig/displaymanager. ++ The user for autologin needs to be configured using YaST or by setting DISPLAYMANAGER_AUTOLOGIN in /etc/sysconfig/displaymanager. diff --git a/kcm_sddm.changes b/kcm_sddm.changes index 09eecb0..20b08e5 100644 --- a/kcm_sddm.changes +++ b/kcm_sddm.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon May 14 07:50:24 UTC 2018 - fabian@ritter-vogt.de + +- 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: + * remove-wayland-suffix.patch + ------------------------------------------------------------------- Wed May 2 09:06:28 CEST 2018 - fabian@ritter-vogt.de diff --git a/kcm_sddm.spec b/kcm_sddm.spec index a2b137a..9cc415f 100644 --- a/kcm_sddm.spec +++ b/kcm_sddm.spec @@ -31,6 +31,8 @@ Patch1: set-default-session-to-plasma5-for-autologin.patch Patch2: 0002-Support-default.session-symlink.patch # PATCH-FIX-OPENSUSE Patch3: 0001-Replace-autologin-configuration-with-a-note-to-use-Y.patch +# PATCH-FIX-UPSTREAM +Patch4: remove-wayland-suffix.patch BuildRequires: extra-cmake-modules >= 1.0.0 BuildRequires: kf5-filesystem BuildRequires: pkgconfig @@ -65,9 +67,7 @@ sddm. %prep %setup -q -n sddm-kcm-%{version} -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 +%autopatch -p1 %build %cmake_kf5 -d build diff --git a/remove-wayland-suffix.patch b/remove-wayland-suffix.patch new file mode 100644 index 0000000..291e32b --- /dev/null +++ b/remove-wayland-suffix.patch @@ -0,0 +1,24 @@ +From: Fabian Vogt +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="))