SystemMenu: Remove --shutdown argument when calling SystemDialog

This commit is contained in:
thatlittlegit 2020-02-22 20:48:15 -05:00 committed by Andreas Kling
parent efc4861786
commit ba6a290f4f
Notes: sideshowbarker 2024-07-19 17:39:10 +09:00

View File

@ -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();
}
}));