strip directory from OpenInFileManager command (#436)
This commit is contained in:
@@ -367,6 +367,10 @@ void OpenInFileManager(const QString &path) {
|
|||||||
command_params.removeAt(command_params.indexOf("%U"));
|
command_params.removeAt(command_params.indexOf("%U"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (command.startsWith("/usr/bin/")) {
|
||||||
|
command = command.split("/").last();
|
||||||
|
}
|
||||||
|
|
||||||
if (command.isEmpty() || command == "exo-open") {
|
if (command.isEmpty() || command == "exo-open") {
|
||||||
QFileInfo info(path);
|
QFileInfo info(path);
|
||||||
if (!info.exists()) return;
|
if (!info.exists()) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user