Преглед изворни кода

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.
Andreas Kling пре 6 година
родитељ
комит
62335c5f0c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Servers/WindowServer/WSWindowManager.cpp

+ 1 - 1
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;