Open directory instead of file for PCManFM

This commit is contained in:
Jonas Kvinge 2020-07-06 20:27:48 +02:00
parent fc8a3be7d9
commit 26a8bfaac4
1 changed files with 3 additions and 0 deletions

View File

@ -393,6 +393,9 @@ void OpenInFileManager(const QString &path) {
QString directory = info.dir().path();
proc.startDetached(command, QStringList() << command_params << "--no-desktop" << directory);
}
else if (command.startsWith("pcmanfm-qt")) {
proc.startDetached(command, QStringList() << command_params << QFileInfo(path).dir().path());
}
else {
proc.startDetached(command, QStringList() << command_params << path);
}