1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 06:57:45 +00:00

Taskbar: Use Process::spawn_or_show_error() for shutdown actions

This commit is contained in:
MacDue 2023-03-13 20:35:34 +00:00 committed by Linus Groh
parent e46b9c189e
commit 43529ea25e
3 changed files with 17 additions and 23 deletions

View file

@ -6,6 +6,7 @@
#pragma once
#include <AK/Optional.h>
#include <AK/Vector.h>
#include <LibGUI/Dialog.h>
@ -13,7 +14,12 @@ class ShutdownDialog : public GUI::Dialog {
C_OBJECT(ShutdownDialog);
public:
static Vector<char const*> show();
struct Command {
StringView executable;
Vector<char const*, 2> arguments;
};
static Optional<Command const&> show();
private:
ShutdownDialog();