help-menu.c: fix default html browser start on windows - correct uri
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Thu, 26 May 2016 11:05:33 +0000 (13:05 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Thu, 26 May 2016 11:05:33 +0000 (13:05 +0200)
commit970c24cc433e6d87cb3c502b2d2bdce6775a3d3e
tree5cc42ea710234982eb664c4c925b7adaf48116f6
parent795f64ee17fe01659dec6424dbf21fdaeb29ceeb
help-menu.c: fix default html browser start on windows - correct uri

commit #6c9aaa introduced calling the default html browser in case the
yelp system is not available on the system. This patch fixes a
problem on WINDOWS, where the browser did not open. The problem is
that on windows the "start" command is not a regular executable but
a part of the cmd shell. So the executable that has to be called is
"cmd" with start as a parameter to execute. There is an additional
problem on windows that the "Program Files" directory contains a
space in the path name. For a proper uri, this has to be
translated to Program%20Files. This is done via the
g_filename_to_uri function.
src/ui/gui/help-menu.c