diff options
Diffstat (limited to 'src/gui/platform/unix/qgenericunixservices.cpp')
-rw-r--r-- | src/gui/platform/unix/qgenericunixservices.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/platform/unix/qgenericunixservices.cpp b/src/gui/platform/unix/qgenericunixservices.cpp index 32487b16511..a36976a6937 100644 --- a/src/gui/platform/unix/qgenericunixservices.cpp +++ b/src/gui/platform/unix/qgenericunixservices.cpp @@ -105,10 +105,10 @@ static inline bool detectWebBrowser(const QByteArray &desktop, return true; if (checkBrowserVariable) { - QByteArray browserVariable = qgetenv("DEFAULT_BROWSER"); + QString browserVariable = qEnvironmentVariable("DEFAULT_BROWSER"); if (browserVariable.isEmpty()) - browserVariable = qgetenv("BROWSER"); - if (!browserVariable.isEmpty() && checkExecutable(QString::fromLocal8Bit(browserVariable), browser)) + browserVariable = qEnvironmentVariable("BROWSER"); + if (!browserVariable.isEmpty() && checkExecutable(browserVariable, browser)) return true; } |