mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-02 10:36:45 +01:00
strip directory from OpenInFileManager command (#436)
This commit is contained in:
parent
c7d4624282
commit
f26a0df4a4
@ -367,6 +367,10 @@ void OpenInFileManager(const QString &path) {
|
||||
command_params.removeAt(command_params.indexOf("%U"));
|
||||
}
|
||||
|
||||
if (command.startsWith("/usr/bin/")) {
|
||||
command = command.split("/").last();
|
||||
}
|
||||
|
||||
if (command.isEmpty() || command == "exo-open") {
|
||||
QFileInfo info(path);
|
||||
if (!info.exists()) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user