Skip to content

Commit 3226889

Browse files
Remove TranslateEnvironmentVariablePath
1 parent 2c36692 commit 3226889

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/EnvironmentVariables.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ internal static Dictionary<string, string> LoadEnvironmentStringPaths()
6060
return envStringPaths;
6161
}
6262

63-
internal static string TranslateEnvironmentVariablePath(string environmentVariablePath)
64-
{
65-
return Environment.ExpandEnvironmentVariables(environmentVariablePath);
66-
}
67-
6863
internal static List<Result> GetEnvironmentStringPathSuggestions(string querySearch, Query query, PluginInitContext context)
6964
{
7065
var results = new List<Result>();

Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ private async Task<List<Result>> PathSearchAsync(Query query, CancellationToken
178178

179179
// Query is a location path with a full environment variable, eg. %appdata%\somefolder\
180180
var isEnvironmentVariablePath = EnvironmentVariables.BeginsWithEnvironmentVar(querySearch);
181-
181+
182182
var locationPath = querySearch;
183183

184184
if (isEnvironmentVariablePath)
185-
locationPath = EnvironmentVariables.TranslateEnvironmentVariablePath(locationPath);
185+
locationPath = Environment.ExpandEnvironmentVariables(locationPath);
186186

187187
// Check that actual location exists, otherwise directory search will throw directory not found exception
188188
if (!FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath).LocationExists())

0 commit comments

Comments
 (0)