diff --git a/src/core/utilities.cpp b/src/core/utilities.cpp index 53eaeb6b9..f1d3cbefa 100644 --- a/src/core/utilities.cpp +++ b/src/core/utilities.cpp @@ -38,7 +38,6 @@ #include #include #include -#include #include #include #include @@ -59,6 +58,7 @@ #include #elif defined(Q_OS_WIN32) #include +#include #endif #ifdef Q_OS_LINUX @@ -76,6 +76,7 @@ #include "CoreServices/CoreServices.h" #include "IOKit/ps/IOPowerSources.h" #include "IOKit/ps/IOPSKeys.h" +#include #endif namespace Utilities { @@ -410,9 +411,7 @@ void OpenInFileBrowser(const QList& urls) { #elif defined(Q_OS_WIN32) ShowFileInExplorer(path); #else - QStringList args; - args << directory; - QProcess::startDetached("xdg-open", args); + QDesktopServices::openUrl(QUrl::fromLocalFile(directory)); #endif } }