diff --git a/src/plugins/coreplugin/locator/filesystemfilter.cpp b/src/plugins/coreplugin/locator/filesystemfilter.cpp index 1b6e1c1e250..647753539e4 100644 --- a/src/plugins/coreplugin/locator/filesystemfilter.cpp +++ b/src/plugins/coreplugin/locator/filesystemfilter.cpp @@ -14,6 +14,7 @@ #include #include +#include #include #include #include @@ -72,7 +73,11 @@ QList FileSystemFilter::matchesFor(QFutureInterface entries[int(MatchLevel::Count)]; - const QFileInfo entryInfo(entry); + + Environment env = Environment::systemEnvironment(); + const QString expandedEntry = env.expandVariables(entry); + + const QFileInfo entryInfo(expandedEntry); const QString entryFileName = entryInfo.fileName(); QString directory = entryInfo.path(); if (entryInfo.isRelative()) { @@ -139,10 +144,10 @@ QList FileSystemFilter::matchesFor(QFutureInterface