1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

TaskBar+Utilities: Add logout(1) command, and call it in ShutdownDialog

logout kills the session that SystemServer --user was started with.
This commit is contained in:
Peter Elliott 2021-10-10 16:04:14 -06:00 committed by Andreas Kling
parent 7283b0b214
commit 92b6e4fd76
2 changed files with 63 additions and 1 deletions

View file

@ -26,7 +26,7 @@ struct Option {
static const Vector<Option> options = {
{ "Power off computer", { "/bin/shutdown", "--now", nullptr }, true, true },
{ "Reboot", { "/bin/reboot", nullptr }, true, false },
{ "Log out", {}, false, false },
{ "Log out", { "/bin/logout", nullptr }, true, false },
};
Vector<char const*> ShutdownDialog::show()