WindowServer: Spawn a SystemDialog when activating the shutdown menu.

This allows us to ask the user for confirmation instead of just shutting
down the system abruptly.
This commit is contained in:
Andreas Kling 2019-07-16 21:31:36 +02:00
parent f98b1f635b
commit 62335c5f0c
Notes: sideshowbarker 2024-07-19 13:13:58 +09:00

View file

@ -89,7 +89,7 @@ WSWindowManager::WSWindowManager()
return;
case 300:
if (fork() == 0) {
execl("/bin/shutdown", "/bin/shutdown", "-n", nullptr);
execl("/bin/SystemDialog", "/bin/SystemDialog", "--shutdown", nullptr);
ASSERT_NOT_REACHED();
}
return;