public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Steve Cossette <farchord@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kscreenlocker] f45: Possible fix for switching users not working
Date: Fri, 23 Oct 2026 00:33:39 GMT [thread overview]
Message-ID: <179271561907.1.306865929258951502.rpms-kscreenlocker-36961d3ccea5@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/kscreenlocker
Branch : f45
Commit : 36961d3ccea57a9104b98ea043fa8d2b5834e854
Author : Steve Cossette <farchord@gmail.com>
Date : 2026-10-01T07:54:25-04:00
Stats : +68/-19 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/kscreenlocker/c/36961d3ccea57a9104b98ea043fa8d2b5834e854?branch=f45
Log:
Possible fix for switching users not working
---
diff --git a/378.patch b/378.patch
new file mode 100644
index 0000000..beb6ccc
--- /dev/null
+++ b/378.patch
@@ -0,0 +1,61 @@
+diff --color -uarN a/interface.cpp b/interface.cpp
+--- a/interface.cpp 2026-10-01 07:40:52.342158795 -0400
++++ b/interface.cpp 2026-10-01 07:44:14.550563558 -0400
+@@ -135,11 +135,6 @@
+ return;
+ }
+ m_daemon->lock(calledFromDBus() ? EstablishLock::Immediate : EstablishLock::Delayed);
+-
+- if (calledFromDBus() && m_daemon->lockState() == KSldApp::Locked) {
+- m_lockReplies << message().createReply();
+- setDelayedReply(true);
+- }
+ }
+
+ bool Interface::SetActive(bool state)
+@@ -211,13 +206,11 @@
+
+ void Interface::slotLocked()
+ {
+- sendLockReplies();
+ Q_EMIT ActiveChanged(true);
+ }
+
+ void Interface::slotUnlocked()
+ {
+- sendLockReplies();
+ Q_EMIT ActiveChanged(false);
+ }
+
+@@ -226,15 +219,6 @@
+ m_daemon->configure();
+ }
+
+-void Interface::sendLockReplies()
+-{
+- for (const QDBusMessage &reply : std::as_const(m_lockReplies)) {
+- QDBusConnection::sessionBus().send(reply);
+- }
+-
+- m_lockReplies.clear();
+-}
+-
+ } // namespace
+
+ #include "moc_interface.cpp"
+diff --color -uarN a/interface.h b/interface.h
+--- a/interface.h 2026-10-01 07:40:52.342158795 -0400
++++ b/interface.h 2026-10-01 07:44:40.605916328 -0400
+@@ -121,12 +121,10 @@
+ void serviceUnregistered(const QString &name);
+
+ private:
+- void sendLockReplies();
+
+ KSldApp *m_daemon;
+ QDBusServiceWatcher *m_serviceWatcher;
+ QList<InhibitRequest> m_requests;
+ uint m_next_cookie;
+- QList<QDBusMessage> m_lockReplies;
+ };
+ }
diff --git a/fix-user-switching.patch b/fix-user-switching.patch
deleted file mode 100644
index aef5929..0000000
--- a/fix-user-switching.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff -ruN a/interface.cpp b/interface.cpp
---- a/interface.cpp 2026-09-16 12:14:50.639304771 -0400
-+++ b/interface.cpp 2026-09-16 12:16:01.465197996 -0400
-@@ -134,12 +134,11 @@
- if (!KAuthorized::authorizeAction(QStringLiteral("lock_screen"))) {
- return;
- }
-- m_daemon->lock(calledFromDBus() ? EstablishLock::Immediate : EstablishLock::Delayed);
--
-- if (calledFromDBus() && m_daemon->lockState() == KSldApp::Locked) {
-+ if (calledFromDBus()) {
- m_lockReplies << message().createReply();
- setDelayedReply(true);
- }
-+ m_daemon->lock(calledFromDBus() ? EstablishLock::Immediate : EstablishLock::Delayed);
- }
-
- bool Interface::SetActive(bool state)
diff --git a/kscreenlocker.spec b/kscreenlocker.spec
index c659e71..b1a42a7 100644
--- a/kscreenlocker.spec
+++ b/kscreenlocker.spec
@@ -1,6 +1,6 @@
Name: kscreenlocker
Version: 6.7.91
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Library and components for secure lock screen architecture
License: BSD-3-Clause AND CC0-1.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND LGPL-2.1-only AND LGPL-3.0-only AND (GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.1-only OR LGPL-3.0-only)
@@ -13,6 +13,9 @@ Source1: https://download.kde.org/%{stable_kf6}/plasma/%{version}/%{name}-%{vers
Conflicts: plasma-workspace < 5.5
## upstream patches
+# Make sure we're sending a reply even when the screen was already locked
+# https://invent.kde.org/plasma/kscreenlocker/-/merge_requests/378
+Patch0: 378.patch
BuildRequires: cmake(LayerShellQt)
@@ -99,6 +102,9 @@ developing applications that use %{name}.
%changelog
+* Thu Oct 01 2026 Steve Cossette <farchord@gmail.com> - 6.7.91-2
+- Fix: Switch user button on lock screen isn't working
+
* Thu Sep 24 2026 Steve Cossette <farchord@gmail.com> - 6.7.91-1
- 6.7.91
reply other threads:[~2026-10-23 0:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179271561907.1.306865929258951502.rpms-kscreenlocker-36961d3ccea5@fedoraproject.org \
--to=farchord@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox