Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:8209
kglobalaccel.openSUSE_Leap_42.3_Update
0001-Make-kglobalaccel5-properly-killable-fixin...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Make-kglobalaccel5-properly-killable-fixing-super-sl.patch of Package kglobalaccel.openSUSE_Leap_42.3_Update
From 065fb2bab67d19e5a6aa831039f8bd155a28bd70 Mon Sep 17 00:00:00 2001 From: Andreas Hartmetz <ahartmetz@gmail.com> Date: Sun, 27 Mar 2016 00:34:54 +0200 Subject: [PATCH 1/1] Make kglobalaccel5 properly killable, fixing super slow shutdown. One does not just catch signals in a multi-threaded (or really any nontrivial) application. At least since some time, Qt has separate threads for xcb and dbus. This signal catching business caused a deadlock in the main thread, which made kglobalaccel5 survive getting killed by... systemd? Now, when an unplanned signal arrives, just die like a normal process. But when shutting down orderly, actually try to save pending changes. On my Kubuntu 15.10, after an already slow logout, the shutdown splash screen would stay on for a minute or so while systemd didn't dare to shut down the computer - as I figured out, it was because kglobalaccel5 was the last process running from the previous session. So why did kglobalaccel5 not get killed by ksmserver? Apparently, due to some mess involving systemd, there are two session buses and two "unique" instances of kglobalaccel5. One of them is the one that survives. Of course, this also needs to be fixed. It might be just a local problem of mine, though. In any case, this change is also the right thing to do on its own. Also, disable fallback session management. It's just no good :) (This makes no difference for the observed bug.) (cherry picked from commit 9a8866c2a424a29ef06ee6ad594c92c62ac099c3) --- src/runtime/main.cpp | 16 ++-------------- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/runtime/main.cpp b/src/runtime/main.cpp index 81dbde5..5264ad4 100644 --- a/src/runtime/main.cpp +++ b/src/runtime/main.cpp @@ -68,7 +68,7 @@ extern "C" Q_DECL_EXPORT int main(int argc, char **argv) KDBusService service(KDBusService::Unique); app.setQuitOnLastWindowClosed( false ); -#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) +#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 1) QGuiApplication::setFallbackSessionManagementEnabled(false); #endif -- 2.6.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor