Bug 349805

Summary: Plasma quits even some other applications block logout
Product: [Plasma] plasmashell Reporter: Weng Xuetian <wengxt>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED FIXED    
Severity: normal CC: bhush94, plasma-bugs, sitter, wbauer1
Priority: NOR    
Version: 5.5.4   
Target Milestone: 1.0   
Platform: Chakra   
OS: Linux   
Latest Commit: Version Fixed In: 5.6
Sentry Crash Report:

Description Weng Xuetian 2015-07-02 01:14:02 UTC
In KDE4, if there's an application blocks logout/shutdown, e.g. unsaved kwrite, plasma will still be there until real shutdown starts.
In Plasma 5, plasma will exit immediately when other application are still blocking the logout procedure. This might leave user a uneasy environment to do their pre-shutdown stuff. 

Reproducible: Always

Steps to Reproduce:
1. Open kwrite and edit some thing, don't save it.
2. Try to logout the system

Actual Results:  
Plasma closed and kwrite ask you about "save the unsaved documents"

Expected Results:  
Plasma doesn't close until you do something with kwrite dialog
Comment 1 Wolfgang Bauer 2016-02-20 14:51:51 UTC
This is actually no problem in ksmserver, but the general "Qt5 closing all windows on logout" issue (see bug#354724 and https://bugreports.qt.io/browse/QTBUG-49667).

Proposed fix for plasmashell:
https://git.reviewboard.kde.org/r/127125/
(requires Qt 5.6.0)
Comment 2 Wolfgang Bauer 2016-02-22 11:57:33 UTC
The fix has been submitted to master:
https://quickgit.kde.org/?p=plasma-workspace.git&a=commitdiff&h=b5e814a7b2867914327c889794b1088027aaafd6&hp=724bd005b9b3ae0300fdae40483effcd02c192b3

So this should work in Plasma 5.6 when compiled against Qt 5.6.
Comment 3 Wolfgang Bauer 2016-03-02 14:07:04 UTC
*** Bug 337182 has been marked as a duplicate of this bug. ***