mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-01 18:15:41 +00:00
Use systemctl for shutdown and reboot
This commit is contained in:
@@ -329,12 +329,12 @@ Singleton {
|
||||
|
||||
function shutdown() {
|
||||
Logger.i("Compositor", "Shutdown requested")
|
||||
Quickshell.execDetached(["shutdown", "-h", "now"])
|
||||
Quickshell.execDetached(["systemctl", "poweroff"])
|
||||
}
|
||||
|
||||
function reboot() {
|
||||
Logger.i("Compositor", "Reboot requested")
|
||||
Quickshell.execDetached(["reboot"])
|
||||
Quickshell.execDetached(["systemctl", "reboot"])
|
||||
}
|
||||
|
||||
function suspend() {
|
||||
|
||||
Reference in New Issue
Block a user