mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Only expand environment var when path starts with %
This commit is contained in:
parent
2e4127c63b
commit
6efa9d1731
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
return EnvironmentVariables.GetEnvironmentStringPathSuggestions(querySearch, query, Context);
|
||||
|
||||
// Query is a location path with a full environment variable, eg. %appdata%\somefolder\
|
||||
var isEnvironmentVariablePath = querySearch[1..].Contains("%\\");
|
||||
var isEnvironmentVariablePath = querySearch[0] == '%' && querySearch[1..].Contains("%\\");
|
||||
|
||||
var locationPath = querySearch;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue