From 3c5f75ed5347668d09c8cc488c601f5d6b1b7bd3 Mon Sep 17 00:00:00 2001 From: Nicholas Hollett Date: Sat, 16 May 2020 14:16:43 +0100 Subject: LaunchServer: Discover handlers from *.af files, allow launching based on a known handler Adds metadata about apps for what file types and protocols they can handle, then consumes that in the LaunchServer. The LaunchServer can then use that to offer multiple options for what apps can open a given URL. Callers can then pass back the handler name to the LaunchServer to use an alternate app :) --- Base/res/apps/Browser.af | 4 ++++ Base/res/apps/TextEditor.af | 3 +++ 2 files changed, 7 insertions(+) (limited to 'Base/res/apps') diff --git a/Base/res/apps/Browser.af b/Base/res/apps/Browser.af index acd6b59817..895d570f00 100644 --- a/Base/res/apps/Browser.af +++ b/Base/res/apps/Browser.af @@ -6,3 +6,7 @@ Category=Internet [Icons] 16x16=/res/icons/16x16/app-browser.png 32x32=/res/icons/32x32/app-browser.png + +[Launcher] +FileTypes=html,md +Protocols=http,https diff --git a/Base/res/apps/TextEditor.af b/Base/res/apps/TextEditor.af index e66c69cc5c..4916d03e26 100644 --- a/Base/res/apps/TextEditor.af +++ b/Base/res/apps/TextEditor.af @@ -6,3 +6,6 @@ Category=Utilities [Icons] 16x16=/res/icons/TextEditor16.png 32x32=/res/icons/32x32/app-texteditor.png + +[Launcher] +FileTypes=txt,md,html -- cgit v1.2.3