add add-switchuser-no-limits-in-ukui-screensaver.patch

(cherry picked from commit 9b617a11ffd72e29d98fada8ca00827e6e385ccb)
This commit is contained in:
peijiankang 2023-09-07 15:35:43 +08:00 committed by openeuler-sync-bot
parent 125abe975a
commit 86172bf3d3
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From ad431e316a1905b17509cc8f69040380e3fde9cb Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Mon, 4 Sep 2023 20:45:12 +0800
Subject: [PATCH] add switchuser no limits in ukui-screensaver
---
src/lockwidget.cpp | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/lockwidget.cpp b/src/lockwidget.cpp
index ac11367..2e9a415 100644
--- a/src/lockwidget.cpp
+++ b/src/lockwidget.cpp
@@ -81,9 +81,6 @@ LockWidget::LockWidget(QWidget *parent)
this->installEventFilter(this);
initUI();
- if(users->getUsers().count() < 2){
- ui->btnSwitchUser->hide();
- }
}
LockWidget::~LockWidget()
--
2.33.0

View File

@ -1,6 +1,6 @@
Name: ukui-screensaver
Version: 3.1.1
Release: 5
Release: 6
Summary: Screensaver for UKUI desktop environment
License: GPL-3+ and GPL-2+
URL: http://www.ukui.org
@ -9,6 +9,7 @@ Patch01: 0001-fix-root-can-not-input-passwd-bug.patch
Patch02: 0002-fix-build-compile-error.patch
%if 0%{?kylin}
Patch03: disable-Suspend-and-Sleep-of-ukui-screensaver.patch
Patch04: add-switchuser-no-limits-in-ukui-screensaver.patch
%endif
BuildRequires: cmake
BuildRequires: qt5-qtbase-devel
@ -45,6 +46,7 @@ if [ -e "/usr/include/glib-2.0/gio/gunixfdlist.h" ]; then
fi
%if 0%{?kylin}
%patch03 -p1
%patch04 -p1
%endif
%build
@ -80,6 +82,12 @@ glib-compile-schemas /usr/share/glib-2.0/schemas/ &> /dev/null ||:
%{_prefix}/lib/ukui-screensaver/screensaver-focus-helper
%changelog
* Mon Sep 04 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.1-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add patch3:add-switchuser-no-limits-in-ukui-screensaver.patch
* Wed Jun 14 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.1-5
- Type:bugfix
- ID:NA