1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-02-01 10:06:43 +01:00

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

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);
}