Skip to content

Commit 91239a4

Browse files
authored
Fixed an issue where the UAC prompt was shown when opening .url shortcuts (#4202)
1 parent 7df5ef0 commit 91239a4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Files.Launcher/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,6 @@ private static async void HandleApplicationLaunch(string application, Dictionary
866866
{
867867
using Process process = new Process();
868868
process.StartInfo.UseShellExecute = true;
869-
process.StartInfo.Verb = "runas";
870869
process.StartInfo.FileName = application;
871870
process.StartInfo.CreateNoWindow = true;
872871
process.StartInfo.Arguments = arguments;

Files/BaseLayout.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public virtual void SetShellContextmenu(MenuFlyout menuFlyout, bool shiftPressed
241241
{ "Arguments", "LoadContextMenu" },
242242
{ "FilePath", IsItemSelected ?
243243
string.Join('|', selectedItems.Select(x => x.ItemPath)) :
244-
ParentShellPageInstance.FilesystemViewModel.CurrentFolder.ItemPath},
244+
ParentShellPageInstance.FilesystemViewModel.WorkingDirectory },
245245
{ "ExtendedMenu", shiftPressed },
246246
{ "ShowOpenMenu", showOpenMenu }
247247
})).Result;

0 commit comments

Comments
 (0)