[wx-dev] wxLaunchDefaultBrowser is failing

Priyank Bolia priyank.bolia at gmail.com
Fri Jul 18 22:29:29 PDT 2008


Sorry I have only one machine (its just personal project).

On Sat, Jul 19, 2008 at 10:52 AM, Vadim Zeitlin <vadim at wxwidgets.org> wrote:

> On Sat, 19 Jul 2008 10:48:49 +0530 Priyank Bolia <priyank.bolia at gmail.com>
> wrote:
>
> PB> I didn't got u, if you are asking what is the returnCode value for
> this:
> PB> int returnCode =3D wxExecute(xdg_open + _T(" ") + url, wxEXEC_SYNC);
> PB> if(returnCode =3D=3D 0)
> PB>     return true;
> PB> then the returnCode is 4, which is the right error code, hence it won=
't
> PB> return and gnome and kde detection code wont be called.
> PB> As, I already mentioned currently the flag wxEXEC_SYNC is not used,
> PB> defaulting to wxEXEC_ASYNC which will never return 0.
>
>  Yes, I understood this, thanks. Actually I'm asking whether
> wxExecute(wxEXEC_SYNC) returns immediately if there is _no_ problem with
> launching the browser as we wouldn't want to wait until the end of browser
> process. Of course, this is probably going to be a bit difficult for you =
to
> test if xdg-open always fails on your machine (which is surprising on its
> own, I'm pretty sure others reported it working on Ubuntu Hardy)... can
> anybody else check this? Or maybe you have another machine where xdg-open
> does work?
>
>  Thanks,
> VZ
>
> _______________________________________________
> wx-dev mailing list
> wx-dev at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20080719/8a036=
82b/attachment.htm


More information about the wx-dev mailing list