It might be cleaner to use nix::sys::reboot for power management (shut down and reboot) instead of using the current library that shells out to the appropriate commands.
But doing that would require giving tuigreet the CAP_SYS_BOOT capability, which may not be something we want to do.
It might be cleaner to use
nix::sys::reboot
for power management (shut down and reboot) instead of using the current library that shells out to the appropriate commands.But doing that would require giving
tuigreet
theCAP_SYS_BOOT
capability, which may not be something we want to do.More research is needed.