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…
Reference in New Issue