Skip to content

Commit

Permalink
feat: ExpandEnvironmentVariables
Browse files Browse the repository at this point in the history
  • Loading branch information
ennerperez committed Dec 3, 2024
1 parent 93738ba commit a22a79f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions BrowseRouter/BrowserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public async Task LaunchAsync(string url, string windowTitle)

string name = GetAppName(path);
await notifier.NotifyAsync($"Opening {name}", $"URL: {url}");

path = Environment.ExpandEnvironmentVariables(path);

Process.Start(path, $"{args} \"{uri.OriginalString}\"");
}
Expand Down
7 changes: 4 additions & 3 deletions BrowseRouter/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ enabled = true
enabled = true

[browsers]
ff = C:\Program Files\Mozilla Firefox\firefox.exe
edge = C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
chrome = C:\Program Files\Google\Chrome\Application\chrome.exe
edge = %ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe
opera = %UserProfile%\AppData\Local\Programs\Opera\opera.exe
ff = %ProgramFiles%\Mozilla Firefox\firefox.exe
chrome = %ProgramFiles%\Google\Chrome\Application\chrome.exe

[sources]
*Microsoft Teams* = edge
Expand Down

0 comments on commit a22a79f

Please sign in to comment.