mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Add loginctl to default Reboot to UEFI
This commit is contained in:
@@ -22,7 +22,7 @@ Popup {
|
||||
"suspend": "systemctl suspend || loginctl suspend",
|
||||
"hibernate": "systemctl hibernate || loginctl hibernate",
|
||||
"reboot": "systemctl reboot || loginctl reboot",
|
||||
"rebootToUefi": "systemctl reboot --firmware-setup",
|
||||
"rebootToUefi": "systemctl reboot --firmware-setup || loginctl reboot --firmware-setup",
|
||||
"logout": I18n.tr("panels.session-menu.entry-settings-default-command-logout"),
|
||||
"shutdown": "systemctl poweroff || loginctl poweroff"
|
||||
}
|
||||
|
||||
@@ -494,7 +494,7 @@ Singleton {
|
||||
return;
|
||||
|
||||
HooksService.executeSessionHook("rebootToUefi", () => {
|
||||
Quickshell.execDetached(["sh", "-c", "systemctl reboot --firmware-setup"]);
|
||||
Quickshell.execDetached(["sh", "-c", "systemctl reboot --firmware-setup || loginctl reboot --firmware-setup"]);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user