Skip to content

Commit 0a4266e

Browse files
authored
Fix: Fixed issue where launching Files from terminal didn't use the correct path (#16642)
1 parent 71da435 commit 0a4266e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public async Task InitializeApplicationAsync(object activatedEventArgs)
7070
if (ppm.IsEmpty())
7171
rootFrame.Navigate(typeof(MainPage), null, new SuppressNavigationTransitionInfo());
7272
else
73-
await InitializeFromCmdLineArgsAsync(rootFrame, ppm);
73+
await InitializeFromCmdLineArgsAsync(rootFrame, ppm, Environment.CurrentDirectory);
7474
}
7575
else if (rootFrame.Content is null || rootFrame.Content is SplashScreenPage || !MainPageViewModel.AppInstances.Any())
7676
{
@@ -131,7 +131,7 @@ public async Task InitializeApplicationAsync(object activatedEventArgs)
131131
if (ppm.IsEmpty())
132132
rootFrame.Navigate(typeof(MainPage), null, new SuppressNavigationTransitionInfo());
133133
else
134-
await InitializeFromCmdLineArgsAsync(rootFrame, ppm);
134+
await InitializeFromCmdLineArgsAsync(rootFrame, ppm, Environment.CurrentDirectory);
135135
break;
136136
default:
137137
rootFrame.Navigate(typeof(MainPage), null, new SuppressNavigationTransitionInfo());

0 commit comments

Comments
 (0)