1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-23 08:20:01 +01:00

Merge pull request #5073 from electric-indigo/revert-4984-master

Revert "Workaround for malfunctioning "Show in file browser" feature …
This commit is contained in:
John Maguire 2015-10-12 12:34:45 +01:00
commit fd7843bdae

View File

@ -38,7 +38,6 @@
#include <QIODevice>
#include <QMetaEnum>
#include <QMouseEvent>
#include <QProcess>
#include <QStringList>
#include <QTcpServer>
#include <QtDebug>
@ -59,6 +58,7 @@
#include <sys/statvfs.h>
#elif defined(Q_OS_WIN32)
#include <windows.h>
#include <QProcess>
#endif
#ifdef Q_OS_LINUX
@ -76,6 +76,7 @@
#include "CoreServices/CoreServices.h"
#include "IOKit/ps/IOPowerSources.h"
#include "IOKit/ps/IOPSKeys.h"
#include <QProcess>
#endif
namespace Utilities {
@ -410,9 +411,7 @@ void OpenInFileBrowser(const QList<QUrl>& urls) {
#elif defined(Q_OS_WIN32)
ShowFileInExplorer(path);
#else
QStringList args;
args << directory;
QProcess::startDetached("xdg-open", args);
QDesktopServices::openUrl(QUrl::fromLocalFile(directory));
#endif
}
}