X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b13f5fbf29003f4b44eb8aed4b208481e812ed2e..7948c0c24401c496c04da3c28f1f1f2f282ba327:/src/generic/helpext.cpp diff --git a/src/generic/helpext.cpp b/src/generic/helpext.cpp index 66f9096240..bfd3efb403 100644 --- a/src/generic/helpext.cpp +++ b/src/generic/helpext.cpp @@ -46,6 +46,11 @@ IMPLEMENT_CLASS(wxExtHelpController, wxHTMLHelpControllerBase) +/// Name of environment variable to set help browser. +#define WXEXTHELP_ENVVAR_BROWSER "WX_HELPBROWSER" +/// Is browser a netscape browser? +#define WXEXTHELP_ENVVAR_BROWSERISNETSCAPE "WX_HELPBROWSER_NS" + /** This class implements help via an external browser. It requires the name of a directory containing the documentation @@ -125,6 +130,7 @@ wxExtHelpController::DisplayHelp(const wxString &relativeURL) #else // UNIX wxString command; +#ifndef __EMX__ if(m_BrowserIsNetscape) // try re-loading first { wxString lockfile; @@ -140,7 +146,7 @@ wxExtHelpController::DisplayHelp(const wxString &relativeURL) // cannot use wxFileExists, because it's a link pointing to a // non-existing location if(wxFileExists(lockfile)) #endif - { + { long success; command << m_BrowserName << wxT(" -remote openURL(") << wxT("file://") << m_MapFile @@ -150,6 +156,7 @@ wxExtHelpController::DisplayHelp(const wxString &relativeURL) return TRUE; } } +#endif command = m_BrowserName; command << wxT(" file://") << m_MapFile << WXEXTHELP_SEPARATOR << relativeURL;