Skip to content

Commit c63e568

Browse files
authored
Fix: Fixed issue where batch files were opened as system32 (#14101)
1 parent be0acbd commit c63e568

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Files.App/Utils/Shell/LaunchHelper.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ private static async Task<bool> HandleApplicationLaunch(string application, stri
9898
process.StartInfo.Arguments = arguments;
9999

100100
// Refresh env variables for the child process
101-
foreach (DictionaryEntry ent in Environment.GetEnvironmentVariables(EnvironmentVariableTarget.Machine))
102-
process.StartInfo.EnvironmentVariables[(string)ent.Key] = (string)ent.Value;
103-
104101
foreach (DictionaryEntry ent in Environment.GetEnvironmentVariables(EnvironmentVariableTarget.User))
105102
process.StartInfo.EnvironmentVariables[(string)ent.Key] = (string)ent.Value;
106103

0 commit comments

Comments
 (0)