1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

LaunchServer+LibDesktop: Open from mime type

Before, LaunchServer would only open files based on their extension.
This wouldn't work if the file had the wrong one.
This commit is contained in:
demostanis 2022-07-22 18:03:22 +02:00 committed by Sam Atkins
parent 031322fde3
commit 48766449e5
4 changed files with 65 additions and 12 deletions

View file

@ -32,6 +32,7 @@ public:
String icon_path() const;
GUI::Icon icon() const;
bool run_in_terminal() const;
Vector<String> launcher_mime_types() const;
Vector<String> launcher_file_types() const;
Vector<String> launcher_protocols() const;
bool spawn() const;