From 48164a134157974ad616340c59eb93a41d1c431ce280be85064f2ad3668348f9 Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Wed, 25 Apr 2018 20:14:51 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/plasma5-workspace?expand=0&rev=396 --- lazy-sddm-theme.patch | 28 ++++++++++++++++++++++++++++ plasma5-workspace.changes | 6 ++++++ plasma5-workspace.spec | 4 +++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 lazy-sddm-theme.patch diff --git a/lazy-sddm-theme.patch b/lazy-sddm-theme.patch new file mode 100644 index 0000000..bebc2c3 --- /dev/null +++ b/lazy-sddm-theme.patch @@ -0,0 +1,28 @@ +From: Fabian Vogt +Subject: sddm-theme: Set needsFullUserModel=false + +Otherwise SDDM has to load all users even if they're not shown. +See https://github.com/sddm/sddm/pull/1017 + +diff --git a/sddm-theme/Main.qml b/sddm-theme/Main.qml +index 71fcd44d..e951aa2f 100644 +--- a/sddm-theme/Main.qml ++++ b/sddm-theme/Main.qml +@@ -97,6 +97,8 @@ PlasmaCore.ColorScope { + + if ( userListModel.count == 0 ) return false + ++ if ( userListModel.hasOwnProperty("containsAllUsers") && !userListModel.containsAllUsers) return false ++ + return userListModel.count <= userListModel.disableAvatarsThreshold && (userList.y + mainStack.y) > 0 + } + +diff --git a/sddm-theme/theme.conf b/sddm-theme/theme.conf +index c293b25b..54d7f1b2 100644 +--- a/sddm-theme/theme.conf ++++ b/sddm-theme/theme.conf +@@ -2,3 +2,4 @@ + type=color + color=#1d99f3 + background= ++needsFullUserModel=false diff --git a/plasma5-workspace.changes b/plasma5-workspace.changes index 20ec3d1..45b8281 100644 --- a/plasma5-workspace.changes +++ b/plasma5-workspace.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 23 07:07:44 UTC 2018 - fabian@ritter-vogt.de + +- Add patch to avoid listing all users over NIS: + * lazy-sddm-theme.patch + ------------------------------------------------------------------- Tue Apr 17 08:19:26 UTC 2018 - fabian@ritter-vogt.de diff --git a/plasma5-workspace.spec b/plasma5-workspace.spec index 4b307b2..1204640 100644 --- a/plasma5-workspace.spec +++ b/plasma5-workspace.spec @@ -50,8 +50,10 @@ Patch502: 0001-Ignore-default-sddm-face-icons.patch Patch503: 0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch # PATCH-FIX-UPSTREAM (once sddm part merged) Patch504: 0001-Add-suffix-to-the-wayland-session-s-name.patch -# PATCH-FIX-UPSTRAM (or alternative solution) +# PATCH-FIX-UPSTREAM (or alternative solution) Patch505: 0001-Set-XDG_SESSION_TYPE-wayland-in-startplasmacomposito.patch +# PATCH-FIX-OPENSUSE +Patch506: lazy-sddm-theme.patch BuildRequires: breeze5-icons BuildRequires: fdupes BuildRequires: kf5-filesystem