Closed jimbojetlag closed 3 years ago
I'm sorry, I don't use Windows so I don't have a way to test o fix this. If you can fix it, please send a PR
On 1 Jul 2016, at 11:57, jimbojetlag notifications@github.com wrote:
When compiled with -ldflags "-H windowsgui", browser.OpenURL doe snot work at all.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Thanks @davecheney . The error seems to be The handle is invalid
which simply means there is no console to run the start
command to open the browser.
The only way I could so far find is to attach or allocate a console, and then open the url, as described in http://stackoverflow.com/a/23744350 .
This is not the ideal case.
@davecheney can you please take a look at #8? Thanks!
WSL support should now work via forking out to x-www-browser or www-browser, more OS specific commands (but ideally not WSL specific) can be added if needed.
When compiled with
-ldflags "-H windowsgui"
,browser.OpenURL
does not work at all.