|
From: Alain A. <ala...@wa...> - 2016-08-08 11:28:19
|
Le 08/08/2016 à 13:00, Alexander S.Kresin a écrit :
> If you run a console application and you know it name and path, you
> may use hwg_RunConsoleApp( cCommandLine, cFileOut ) instead.
I have tried, and the command is correctly launched, but it crashes just
after (Erreur de segmentation) without log.
curl="http://www.kresin.ru/en/hwgdoc.html"
if cBrowser == ""
// hwg_ShellExecute(curl)
hwg_RunConsoleApp('firefox "'+curl+'"', cStdOut )
else
run(cBrowser+' "'+curl+'" > /dev/null 2>&1 &')
endif
So, for the moment, I will use this trick:
have a param which is the browser:
if empty
use hwg_ShellExecute()
else
use run() with redirections
endif
Thanks
A+
--
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-07-18 18:32) |
Hw.Gui 2.19-6 (2549)
------------------------------------------------------------------------
|