Also strip variables with uppercase letters in OpenInFileManager()

This commit is contained in:
Jonas Kvinge 2021-03-31 23:14:16 +02:00
parent beacea0482
commit a87f0e0475
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ void OpenInFileManager(const QString path, const QUrl &url) {
if (setting.contains("Exec")) {
QString cmd = setting.value("Exec").toString();
if (cmd.isEmpty()) break;
cmd = cmd.remove(QRegularExpression("[%][a-z]*( |$)"));
cmd = cmd.remove(QRegularExpression("[%][a-zA-Z]*( |$)"));
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
command_params = cmd.split(' ', Qt::SkipEmptyParts);
#else