mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibDesktop: Add spawn() to AppFiles
This adds a convenience utility to AppFiles for quickly launching the apps backed by the AppFile.
This commit is contained in:
parent
cbe67ed665
commit
ae20c178b9
2 changed files with 22 additions and 0 deletions
|
@ -28,6 +28,7 @@ public:
|
|||
String category() const;
|
||||
Vector<String> launcher_file_types() const;
|
||||
Vector<String> launcher_protocols() const;
|
||||
bool spawn() const;
|
||||
|
||||
GUI::Icon icon() const { return GUI::FileIconProvider::icon_for_path(executable()); };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue