1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:17:42 +00:00

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

View file

@ -192,9 +192,9 @@ NonnullRefPtr<GUI::Menu> build_system_menu()
} }
})); }));
system_menu->add_separator(); 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) { if (fork() == 0) {
execl("/bin/SystemDialog", "/bin/SystemDialog", "--shutdown", nullptr); execl("/bin/SystemDialog", "/bin/SystemDialog", nullptr);
ASSERT_NOT_REACHED(); ASSERT_NOT_REACHED();
} }
})); }));