Also strip variables with uppercase letters in OpenInFileManager()
This commit is contained in:
@@ -368,7 +368,7 @@ void OpenInFileManager(const QString path, const QUrl &url) {
|
|||||||
if (setting.contains("Exec")) {
|
if (setting.contains("Exec")) {
|
||||||
QString cmd = setting.value("Exec").toString();
|
QString cmd = setting.value("Exec").toString();
|
||||||
if (cmd.isEmpty()) break;
|
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)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||||
command_params = cmd.split(' ', Qt::SkipEmptyParts);
|
command_params = cmd.split(' ', Qt::SkipEmptyParts);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user