LaunchServer: Make all file handlers configurable including directories

This commit gets rid of hard coded file handlers in Launcher.cpp in
favor of using values in the LaunchServer.ini config file.

The previous commit adds checks for the existence of handler programs
while registering handlers. This commit takes advantage of that and
ensures that LaunchServer will not attempt to open a file with a
nonexistent program and can properly report failure before spawning a
new child process.

Resolves #8120
This commit is contained in:
bitwitch 2021-06-21 15:16:09 -04:00 committed by Andreas Kling
commit 5ac9494483
Notes: sideshowbarker 2024-07-19 17:27:02 +09:00
2 changed files with 20 additions and 9 deletions

View file

@ -17,6 +17,7 @@ font=/bin/FontEditor
sheets=/bin/Spreadsheet
gml=/bin/Playground
pdf=/bin/PDFViewer
directory=/bin/FileManager
*=/bin/TextEditor
[Protocol]