From 2d2b037460665472184bbd43d85069d7f20e3984 Mon Sep 17 00:00:00 2001 From: electric-indigo Date: Sun, 11 Oct 2015 22:56:42 +0200 Subject: [PATCH] Revert "Workaround for malfunctioning "Show in file browser" feature in Linux" --- src/core/utilities.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 } }