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