Skip to content

Commit

Permalink
Fix: Fixed issue where launching Files from terminal didn't use the c…
Browse files Browse the repository at this point in the history
…orrect path (#16642)
  • Loading branch information
gave92 authored Dec 22, 2024
1 parent 71da435 commit 0a4266e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Files.App/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public async Task InitializeApplicationAsync(object activatedEventArgs)
if (ppm.IsEmpty())
rootFrame.Navigate(typeof(MainPage), null, new SuppressNavigationTransitionInfo());
else
await InitializeFromCmdLineArgsAsync(rootFrame, ppm);
await InitializeFromCmdLineArgsAsync(rootFrame, ppm, Environment.CurrentDirectory);
}
else if (rootFrame.Content is null || rootFrame.Content is SplashScreenPage || !MainPageViewModel.AppInstances.Any())
{
Expand Down Expand Up @@ -131,7 +131,7 @@ public async Task InitializeApplicationAsync(object activatedEventArgs)
if (ppm.IsEmpty())
rootFrame.Navigate(typeof(MainPage), null, new SuppressNavigationTransitionInfo());
else
await InitializeFromCmdLineArgsAsync(rootFrame, ppm);
await InitializeFromCmdLineArgsAsync(rootFrame, ppm, Environment.CurrentDirectory);
break;
default:
rootFrame.Navigate(typeof(MainPage), null, new SuppressNavigationTransitionInfo());
Expand Down

0 comments on commit 0a4266e

Please sign in to comment.