How to use kexec for Plasma/GNOME reboot?


I’d prefer GNOME / Plasma to use kexec when rebooting, this doesn’t seem configurable in these desktop environments, and I didn’t find options in configuration.nix man page related to this. I’m not even sure it’s possible.

Any idea on this? :slight_smile:

Do you mean using menus? I imagine you know how to do it in a terminal (sudo systemctl kexec)?

indeed, I was looking for a way to use it directly from the menus, instead going through systemctl :slight_smile:

I don’t have anything helpful to say, but GNOME shell seems to be infinitely unconfigurable. There should be a way in KDE but I don’t know what it is.

1 Like

Generate a kexec.desktop file that runs systemctl kexec or some wrapper script and dump it in /run/curent-system/sw/share/applications or $HOME/.local/share/applications.

I have created a number of launchers for wrapper scripts this way as it makes it possible to launch them straight from krunner.

FWIW, that should work with GNOME too.