mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ WSWindowManager::WSWindowManager()
|
||||||
return;
|
return;
|
||||||
case 300:
|
case 300:
|
||||||
if (fork() == 0) {
|
if (fork() == 0) {
|
||||||
execl("/bin/shutdown", "/bin/shutdown", "-n", nullptr);
|
execl("/bin/SystemDialog", "/bin/SystemDialog", "--shutdown", nullptr);
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue