Skip to content

Commit

Permalink
Fix: Fixed issue where batch files were opened as system32 (files-com…
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 authored Jan 3, 2024
1 parent be0acbd commit c63e568
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Files.App/Utils/Shell/LaunchHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ private static async Task<bool> HandleApplicationLaunch(string application, stri
process.StartInfo.Arguments = arguments;

// Refresh env variables for the child process
foreach (DictionaryEntry ent in Environment.GetEnvironmentVariables(EnvironmentVariableTarget.Machine))
process.StartInfo.EnvironmentVariables[(string)ent.Key] = (string)ent.Value;

foreach (DictionaryEntry ent in Environment.GetEnvironmentVariables(EnvironmentVariableTarget.User))
process.StartInfo.EnvironmentVariables[(string)ent.Key] = (string)ent.Value;

Expand Down

0 comments on commit c63e568

Please sign in to comment.