Fix dolphin detection for KDE5.

This commit is contained in:
sledgehammer999 2015-08-29 23:47:57 +03:00
parent e937344761
commit ef7de49ec8

View File

@ -592,7 +592,7 @@ void Utils::Misc::openFolderSelect(const QString& absolutePath)
proc.start("xdg-mime", QStringList() << "query" << "default" << "inode/directory");
proc.waitForFinished();
output = proc.readLine().simplified();
if (output == "dolphin.desktop")
if (output == "dolphin.desktop" || output == "org.kde.dolphin.desktop")
proc.startDetached("dolphin", QStringList() << "--select" << Utils::Fs::toNativePath(path));
else if (output == "nautilus.desktop" || output == "org.gnome.Nautilus.desktop"
|| output == "nautilus-folder-handler.desktop")