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:
parent
fc8a3be7d9
commit
26a8bfaac4
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user