Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Files.App/Helpers/UIFilesystemHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ public static async Task CreateShortcutFromDialogAsync(IShellPage associatedInst
/// <param name="runAsAdmin"></param>
public static void UpdateShortcutItemProperties(ShortcutItem item, string targetPath, string arguments, string workingDir, bool runAsAdmin)
{
item.TargetPath = targetPath;
item.TargetPath = Environment.ExpandEnvironmentVariables(targetPath);
item.Arguments = arguments;
item.WorkingDirectory = workingDir;
item.RunAsAdmin = runAsAdmin;
Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/ViewModels/Properties/FolderProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public override void GetBaseProperties()
ViewModel.ShortcutItemOpenLinkCommand = new RelayCommand(async () =>
{
await App.Window.DispatcherQueue.EnqueueAsync(
() => NavigationHelpers.OpenPathInNewTab(Path.GetDirectoryName(ViewModel.ShortcutItemPath)));
() => NavigationHelpers.OpenPathInNewTab(Path.GetDirectoryName(Environment.ExpandEnvironmentVariables(ViewModel.ShortcutItemPath))));
}, () =>
{
return !string.IsNullOrWhiteSpace(ViewModel.ShortcutItemPath);
Expand Down