fixing error handling of HostDialog.OpenExternal
|Assignee:||J. Templ||% Done:|
HostDialog.OpenExternal, which is used by Dialog.OpenExternal, does not report any error messages and does not always work as expected under Linux wine. It is proposed to add clear text error messages and to improve the behavior under wine. The special situation under wine is that there are two levels of associations with filename extensions and protocols: (1) wine's Windows registry and (2) the Linux desktop. The wine associations should take precedence.
In addition, it is proposed to add error handling also to RunExternal and to improve its behavior when calling 'cmd' under wine.
fixing error handling of HostDialog.OpenExternal. Refs: #181.
Textual error messages added for common cases.
In case of association erros under wine, a retry is done with the 'winebrowser ' prefix. This uses the
linux desktop associations for opening a link.
Signed-off-by: Josef Templ <firstname.lastname@example.org>