Ed might be right in saying that the OS distro might be an issue.
Here is the code that is called by the QRZ (and all other browser / web
service calls).
void cb_mnuVisitURL(Fl_Widget*, void* arg)
{
const char* url = reinterpret_cast<const char *>(arg);
#ifndef __WIN32__
const char* browsers[] = {
* getenv("FLDIGI_BROWSER"),
*# ifdef __APPLE__
"open"
# else
* "xdg-open", getenv("BROWSER"), "sensible-brower", "firefox",
"mozilla"
*# endif
};
switch (fork()) {
case 0:
# ifndef NDEBUG
unsetenv("MALLOC_CHECK_");
unsetenv("MALLOC_PERTURB_");
# endif
* for (size_t i = 0; i < sizeof(browsers)/sizeof(browsers[0]); i++)
if (browsers[i])
execlp(browsers[i], browsers[i], url, (char*)0);
exit(EXIT_FAILURE);
* case -1:
fl_alert2(_("Could not run a web browser:\n%s\n\n"
"Open this URL manually:\n%s"),
strerror(errno), url);
}
#else
// "The return value is cast as an HINSTANCE for backward
// compatibility with 16-bit Windows applications. It is
// not a true HINSTANCE, however. The only thing that can
// be done with the returned HINSTANCE is to cast it to an
// int and compare it with the value 32 or one of the error
// codes below." (Error codes omitted to preserve sanity).
if ((int)ShellExecute(NULL, "open", url, NULL, NULL, SW_SHOWNORMAL)
<= 32)
fl_alert2(_("Could not open url:\n%s\n"), url);
#endif
}
I've highlighted the important lines for this discussion.
Do you have an environment variable named FLDIGI_BROWSER set to the
browser you want to use?
Does your OS install have a BROWSER environment variable set
Can you execute "xdg-open" from a command line prompt?
The takes two tries is a known bug on MS for which a solution has not
been discovered.
I will add some Event log debugging lines that may help discover what is
happening on your OS.
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
https://lists.berlios.de/pipermail/fldigi-alpha/attachments/20090911/953bf884/attachment-0001.html