diff --git a/JumpListUtil/Program.cs b/JumpListUtil/Program.cs index 2c1c3ff..5654968 100755 --- a/JumpListUtil/Program.cs +++ b/JumpListUtil/Program.cs @@ -120,6 +120,7 @@ task.Title = entry.Name; task.IconResourcePath = entry.Icon; task.IconResourceIndex = entry.IconIndex; + task.Arguments = entry.Arguments; jumpItems.Add(task); } @@ -132,7 +133,7 @@ WorkingDirectory = Environment.CurrentDirectory, IconResourcePath = Environment.ExpandEnvironmentVariables("%systemroot%\\system32\\imageres.dll"), IconResourceIndex = 228, - Arguments = "-r" + Arguments = "-r -a " + appUserModelId }); JumpList.SetJumpList(wpfApp, new JumpList(jumpItems, false, false)); @@ -145,7 +146,8 @@ Process p = Process.Start(new ProcessStartInfo { FileName = start.Target, - UseShellExecute = true + UseShellExecute = true, + Arguments = start.Arguments }); } else