mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
SystemMenu: Remove --shutdown argument when calling SystemDialog
This commit is contained in:
parent
efc4861786
commit
ba6a290f4f
1 changed files with 2 additions and 2 deletions
|
@ -192,9 +192,9 @@ NonnullRefPtr<GUI::Menu> build_system_menu()
|
|||
}
|
||||
}));
|
||||
system_menu->add_separator();
|
||||
system_menu->add_action(GUI::Action::create("Shutdown...", [](auto&) {
|
||||
system_menu->add_action(GUI::Action::create("Exit...", [](auto&) {
|
||||
if (fork() == 0) {
|
||||
execl("/bin/SystemDialog", "/bin/SystemDialog", "--shutdown", nullptr);
|
||||
execl("/bin/SystemDialog", "/bin/SystemDialog", nullptr);
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue