Bug 499260 - Automatic shutdown/restart action is too forceful
Summary: Automatic shutdown/restart action is too forceful
Status: CONFIRMED
Alias: None
Product: Discover
Classification: Applications
Component: Updates (interactive) (show other bugs)
Version: 6.2.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-28 23:23 UTC by EpicTux123
Modified: 2025-01-29 19:06 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EpicTux123 2025-01-28 23:23:32 UTC
When updating in Discover, there's an option of: "On completion, automatically: [Restart / Shutdown]".

However, using either of those options (I've tested only with Restart, but I assume the same is true for Shutdown) seems to perform a "brute" restart.

When clicking to restart in the application launcher (start menu), Plasma nicely closes all apps before it restarts.
But when using the same option for the automation in Discover it doesn't seem to do that — instead, it seems to do something such as SIGKILL all processes and proceed to restart, without asking them nicely to shut down themselves first.

An example I can give (which just happened to me when using the Restart automation) was that Steam (the gaming app) didn't show "Shutting down Steam..." before it was closed, and Firefox, the next time I started it after rebooting, restored my tabs like if it had recovered from a crash/bad exit (I don't have "Open previous tabs" on start-up enabled).

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.10-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 David Redondo 2025-01-29 12:32:18 UTC
Discover calls org.freedesktop.login1 directly.

Plasma arguably could take a inhibitor to enforce its shutdown process.