Bug #181

fixing error handling of HostDialog.OpenExternal

Added by J. Templ about 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:11/06/2017
Priority:NormalDue date:
Assignee:J. Templ% Done:

0%

Category:-
Target version:1.7.1
Forum topic:https://forum.blackboxframework.org/viewtopic.php?f=40&t=696

Description

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.

Associated revisions

Revision 297ef405
Added by J. Templ about 1 year ago

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 <>

Revision 22608024
Added by J. Templ about 1 year ago

fixing error handling of HostDialog.RunExternal. Refs: #181.
Plus: In case of running under wine, the command 'wineconsole ' is prepended for calling 'cmd'.

Signed-off-by: Josef Templ <>

Revision a48539ef
Added by J. Templ about 1 year ago

using WinApi.FormatMessageW for error reporting. Refs: #181.

Signed-off-by: Josef Templ <>

Revision 85506dec
Added by J. Templ about 1 year ago

workaround a bug in wine added for OpenExternal. Refs: #181.
GetLasterror() can return 0 in case of an error in ShellExecuteEx.
Plus some small code cleanups.

Signed-off-by: Josef Templ <>

Revision 2590c266
Added by J. Templ about 1 year ago

error reporting added to HostDialog.Start. Refs: #181.
As proposed by Helmut Zinn.

Signed-off-by: Josef Templ <>

History

#1 Updated by J. Templ about 1 year ago

  • Forum topic set to https://forum.blackboxframework.org/viewtopic.php?f=40&t=696

#2 Updated by J. Templ about 1 year ago

  • Description updated (diff)

#3 Updated by J. Templ about 1 year ago

  • Description updated (diff)

#4 Updated by R. Campbell about 1 year ago

  • Status changed from New to Closed

Also available in: Atom PDF