Created attachment 140784 [details]
Journal log at logout
In a Plasma session, kdeconnectd (the KDE Connect daemon) gets automatically (re)launched by DBus immediately after the user logs out or initiates a shutdown, causing the logout process to be delayed.
STEPS TO REPRODUCE
1. Make sure that KDE Connect is installed in the system and already set up
2. Log out or shut down from Plasma as usual
Immediately after the user clicks on "Log Out" or "Shutdown" in Plasma, the KDE Connect daemon is relaunched by DBus, as shown in the included journal log. As a result, the logout process gets delayed, i.e. the session would be stuck at a blank screen with a movable cursor longer than the user would expect, sometimes around 30 seconds or more.
KDE Connect and its tray icon would exit as soon as the user clicks one of the aformentioned session control buttons, and its daemon doesn't get relaunched as the user logs out. The session would exit sooner than observed and therefore it spends less time at a blank screen.
KDE Connect Version: 21.08.0
Operating System: Manjaro Linux
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.13.6-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 1600 Six-Core Processor
Memory: 15.6 GiB of RAM
The session exited immediately when I switched to a TTY and ran `pkill kdeconnectd`, confirming the culprit of the long delays with logging out.
The attached journal log has QML and XCB error messages removed for your convenience.
Oops, it turns out this has been already reported in bug #432643. Marking this a duplicate of the said ticket and closing this one.
*** This bug has been marked as a duplicate of bug 432643 ***