Bug 398662 - Prompt to kill busy processes when they prevent system shutdown
Summary: Prompt to kill busy processes when they prevent system shutdown
Status: RESOLVED DUPLICATE of bug 390515
Alias: None
Product: ksmserver
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-15 11:44 UTC by Mircea Kitsune
Modified: 2023-05-17 18:37 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mircea Kitsune 2018-09-15 11:44:38 UTC
What many of us love about KDE is how it stands up against the Windows >= 7 desktop, in terms of both quality and ease of use. I was recently reminded of a Windows feature which none of the Linux desktop environments seem to have implemented so far, and I believe KDE could consider adding it.

When shutting down the computer under recent versions of Windows, the OS will attempt to close user applications before any system or desktop components. If an application is taking too long to close down, it will tell you which programs are holding back the system, then give you a button to forcefully kill the process if you believe that won't cause you to lose work. Additionally you can still abort the logout altogether at that stage. Here is a screen of what this looks like:

https://i.imgur.com/25bMasT.png

While processes blocking a system shutdown isn't too common under Linux, there have been cases where either an application or a job stopped the system from shutting down for long periods of time. In such cases you often no longer have the desktop to launch a tool like KSysGuard and investigate. As such a screen like this might be useful: If a process refuses to shut down in say 5 seconds, Plasma can give the user a screen in which they are informed of which process is holding the shutdown back and given the option to kill it forcefully ("kill -9 PID") if they believe this is safe. What is your opinion of such a feature?
Comment 1 Mircea Kitsune 2018-09-15 11:50:09 UTC
I should note that this suggestion is primarily for unresponsive processes. Unlike Windows, attempting to shut down the system in Linux will tell each application to close, allowing it to prompt you if needed. For instance: If you have an unsaved image in Gimp and try to shut down, Gimp will ask you "do you want to save" as if you clicked the X button on its window. However if Gimp froze in the background for any reason, giving the system a shutdown command will either do nothing or potentially close the desktop and leave you stuck in a black screen.
Comment 2 Nate Graham 2023-05-17 17:13:28 UTC

*** This bug has been marked as a duplicate of bug 390515 ***