Bug 322884

Summary: Dr. Konqi should provide buttons to logout, shutdown, restart
Product: [Applications] drkonqi Reporter: Bhushan Shah <bshah>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: mail
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bhushan Shah 2013-07-27 13:41:47 UTC
In some crash it's like crash loop, Like if plasma-desktop crash due to buggy widget then condition is like close dr konqi, plasma starts again, and again crash...

Reproducible: Always

Steps to Reproduce:
1. Crash plasma-desktop somehow.
2. Wait for dr. Konqi
Actual Results:  
There is no Logout button

Expected Results:  
Option to logout, restart or shutdown so you can escape from crash loop
Comment 1 Jekyll Wu 2013-08-09 07:53:28 UTC
Sorry, DrKonqi can't do much  here. Let me illustrate what actually happens in the given plasma-deskotp example :

1). plasma-desktop runs
2). plasma-desktop crashes for the first time.
3). Dr.Konqi shows up due to that crash. In the mean time, plasma-desktop restart itself automatically, but this time with the '--nocrashhandler' argument, meaning that it (plasma-desktop) won't  tell Dr.Konqi to show up next time it crashes.
4). plasma-deskotp crashes, again. Dr.Konqi do not show up, due to the '--nocrashhandler' argument given to plasma-desktop.
5). plasma-desktop crashes again, restart itself again with '--nocrashhandler' argument. Dr.Konqi do not show up.
6). repeat step 5) again and again.


So Dr.Konqi will only appear once after the first crash. There is no (easy) way for Dr.Konqi to know what happens to plasma-dekstop later: does it keep crashing ,or does it run smoothly after restarting itself? How does Dr.Konqi know whether plasmsa-desktop is crashing like crazy and it should show the 'logout/restart/shutdown' button, or the opposite ?

Also, please keep in mind Dr.Konqi is for serving all KDE applications running in any desktop environment, not only for KDE applications (not to mention this particular plasma-desktop) running in the KDE workspace session. 

Finally, if plasma-deksotp crashes like crazy, do not panic. ksmsever is still running, so you can just press 'Ctrl+alt+del' as usual to show up the familiar logout/shutdown/reboot dialog.