From 273e936ed08449eb297b8a4784dbfcdf79aea362 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Wed, 10 Aug 2016 16:06:40 +0000 Subject: [PATCH] I forgot that system() doesn ot fork() Signed-off-by: Ivailo Monev --- src/gui/util/qdesktopservices_x11.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/util/qdesktopservices_x11.cpp b/src/gui/util/qdesktopservices_x11.cpp index 4d9efb0e2..31aba5023 100644 --- a/src/gui/util/qdesktopservices_x11.cpp +++ b/src/gui/util/qdesktopservices_x11.cpp @@ -57,7 +57,11 @@ QT_BEGIN_NAMESPACE inline static bool launch(const QUrl &url, const QString &client) { QString command = client + QLatin1Char(' ') + url.toEncoded(); +#if !defined(QT_NO_PROCESS) + return (QProcess::startDetached(command)); +#else return (::system(command.toLocal8Bit().constData()) != -1); +#endif } static bool openDocument(const QUrl &url)