mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-20 12:39:01 +01:00
Merge pull request #399 from plonibarploni/patch-2
Fix 'Show in file browser' for Caja
This commit is contained in:
commit
a2a06be62f
@ -379,7 +379,10 @@ void OpenInFileManager(const QString &path) {
|
|||||||
proc.startDetached(command, QStringList() << command_params << "--select" << "--new-window" << path);
|
proc.startDetached(command, QStringList() << command_params << "--select" << "--new-window" << path);
|
||||||
}
|
}
|
||||||
else if (command.startsWith("caja")) {
|
else if (command.startsWith("caja")) {
|
||||||
proc.startDetached(command, QStringList() << command_params << "--no-desktop" << path);
|
QFileInfo info(path);
|
||||||
|
if (!info.exists()) return;
|
||||||
|
QString directory = info.dir().path();
|
||||||
|
proc.startDetached(command, QStringList() << command_params << "--no-desktop" << directory);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
proc.startDetached(command, QStringList() << command_params << path);
|
proc.startDetached(command, QStringList() << command_params << path);
|
||||||
|
Loading…
Reference in New Issue
Block a user