!192 repair freelogin autologin not available

From: @peijiankang 
Reviewed-by: @hua_yadong 
Signed-off-by: @hua_yadong
This commit is contained in:
openeuler-ci-bot 2024-06-11 01:24:31 +00:00 committed by Gitee
commit 246edb87da
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 47 additions and 4 deletions

View File

@ -0,0 +1,38 @@
From bb0c313ac7eb6a3f3d99e3ab86b41946feab53aa Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Thu, 21 Dec 2023 15:36:28 +0800
Subject: [PATCH]
ukui-control-center-3.1.2-repair-freelogin-autologin-not-available
---
plugins/account/userinfo/userinfo.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/plugins/account/userinfo/userinfo.cpp b/plugins/account/userinfo/userinfo.cpp
index 8288eb1..ebc21b9 100644
--- a/plugins/account/userinfo/userinfo.cpp
+++ b/plugins/account/userinfo/userinfo.cpp
@@ -823,7 +823,7 @@ void UserInfo::setUserConnect(){
QDBusConnection::systemBus());
qDebug() << "call" << "method: deleteuser";
- QDBusReply<int> ret = tmpSysinterface->call("setAutoLoginStatus", user.objpath, checked);
+ QDBusReply<int> ret = tmpSysinterface->call("setAutoLoginStatus", checked, user.username);
if (ret == 0) {
autoLoginSBtn->blockSignals(true);
@@ -852,8 +852,9 @@ void UserInfo::setUserConnect(){
return;
}
- QDBusReply<bool> ret = piface.call("setNoPwdLoginStatus", checked, user.username);
- if (ret == false) {
+ QDBusReply<int> ret = piface.call("setNoPwdLoginStatus", checked, user.username);
+
+ if (ret == 0) {
nopwdLoginSBtn->blockSignals(true);
nopwdLoginSBtn->setChecked(!checked);
nopwdLoginSBtn->blockSignals(false);
--
2.33.0

View File

@ -1,6 +1,6 @@
Name: ukui-control-center
Version: 3.1.2
Release: 30
Release: 31
Summary: utilities to configure the UKUI desktop
License: GPL-2+
URL: http://www.ukui.org
@ -28,6 +28,7 @@ Patch23: add-ukcc-setlang.patch
Patch24: fix-changeusertype-error.patch
Patch25: update-formats_loacle-and-language.patch
Patch26: fix-cpuinfo-error-of-ukui-control-center-3.1.2.patch
Patch27: ukui-control-center-3.1.2-repair-freelogin-autologin-not-available.patch
Patch200: fix-build-error-of-libkscreen-qt5-5.27.6.patch
Patch201: fix-build-error-of-clang.patch
@ -107,7 +108,7 @@ rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}/etc/xdg/autostart/
%post
%posttrans
set -e
glib-compile-schemas /usr/share/glib-2.0/schemas/ &> /dev/null ||:
@ -121,8 +122,6 @@ groupadd nopasswdlogin &> /dev/null ||:
%postun
sed -i "/auth sufficient pam_succeed_if.so user ingroup nopasswdlogin/d" /etc/pam.d/lightdm
%preun
systemctl disable ukui-group-manager.service
systemctl stop ukui-group-manager.service
@ -152,6 +151,12 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue May 28 2024 peijiankang <peijiankang@kylinos.cn> - 3.1.2-31
- Type:bugfix
- ID :NA
- SUG :NA
- DESC:add ukui-control-center-3.1.2-repair-freelogin-autologin-not-available.patch
* Fri May 10 2024 peijiankang <peijiankang@kylinos.cn> - 3.1.2-30
- Type:bugfix
- ID :NA