mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:58:14 +00:00
AppFile: Add spawn_with_escalation
This commit is contained in:
parent
83f1775f15
commit
c4abb367a4
2 changed files with 42 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <LibCore/ConfigFile.h>
|
||||
#include <LibGUI/FileIconProvider.h>
|
||||
#include <LibGUI/Icon.h>
|
||||
#include <LibGUI/Window.h>
|
||||
|
||||
namespace Desktop {
|
||||
|
||||
|
@ -44,6 +45,8 @@ public:
|
|||
Vector<ByteString> launcher_file_types() const;
|
||||
Vector<ByteString> launcher_protocols() const;
|
||||
bool spawn(ReadonlySpan<StringView> arguments = {}) const;
|
||||
bool spawn_with_escalation(ReadonlySpan<StringView> arguments = {}) const;
|
||||
void spawn_with_escalation_or_show_error(GUI::Window&, ReadonlySpan<StringView> arguments = {}) const;
|
||||
|
||||
private:
|
||||
explicit AppFile(StringView path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue