From 62335c5f0c9b22ee99dee24d62f0ab8391f11098 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 16 Jul 2019 21:31:36 +0200 Subject: [PATCH] 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. --- Servers/WindowServer/WSWindowManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Servers/WindowServer/WSWindowManager.cpp b/Servers/WindowServer/WSWindowManager.cpp index 83cd86ca0a..ad2a6b4e37 100644 --- a/Servers/WindowServer/WSWindowManager.cpp +++ b/Servers/WindowServer/WSWindowManager.cpp @@ -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;