From e3c84d29487ff573cf5fd4588cb23e36c1371876 Mon Sep 17 00:00:00 2001 From: peijiankang Date: Tue, 28 May 2024 15:02:35 +0800 Subject: [PATCH] repair freelogin autologin not available --- ...ir-freelogin-autologin-not-available.patch | 38 +++++++++++++++++++ ukui-control-center.spec | 13 +++++-- 2 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 ukui-control-center-3.1.2-repair-freelogin-autologin-not-available.patch diff --git a/ukui-control-center-3.1.2-repair-freelogin-autologin-not-available.patch b/ukui-control-center-3.1.2-repair-freelogin-autologin-not-available.patch new file mode 100644 index 0000000..7a7af59 --- /dev/null +++ b/ukui-control-center-3.1.2-repair-freelogin-autologin-not-available.patch @@ -0,0 +1,38 @@ +From bb0c313ac7eb6a3f3d99e3ab86b41946feab53aa Mon Sep 17 00:00:00 2001 +From: root +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 ret = tmpSysinterface->call("setAutoLoginStatus", user.objpath, checked); ++ QDBusReply ret = tmpSysinterface->call("setAutoLoginStatus", checked, user.username); + + if (ret == 0) { + autoLoginSBtn->blockSignals(true); +@@ -852,8 +852,9 @@ void UserInfo::setUserConnect(){ + return; + } + +- QDBusReply ret = piface.call("setNoPwdLoginStatus", checked, user.username); +- if (ret == false) { ++ QDBusReply ret = piface.call("setNoPwdLoginStatus", checked, user.username); ++ ++ if (ret == 0) { + nopwdLoginSBtn->blockSignals(true); + nopwdLoginSBtn->setChecked(!checked); + nopwdLoginSBtn->blockSignals(false); +-- +2.33.0 + diff --git a/ukui-control-center.spec b/ukui-control-center.spec index ae555c5..effe9df 100644 --- a/ukui-control-center.spec +++ b/ukui-control-center.spec @@ -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 - 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 - 3.1.2-30 - Type:bugfix - ID :NA