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:
parent
f98b1f635b
commit
62335c5f0c
Notes:
sideshowbarker
2024-07-19 13:13:58 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/62335c5f0c9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue