Browse Source

Fix dolphin detection for KDE5.

adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
ef7de49ec8
  1. 2
      src/core/utils/misc.cpp

2
src/core/utils/misc.cpp

@ -592,7 +592,7 @@ void Utils::Misc::openFolderSelect(const QString& absolutePath) @@ -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")

Loading…
Cancel
Save