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
Discover calls org.freedesktop.login1 directly. Plasma arguably could take a inhibitor to enforce its shutdown process.