@@ -26,11 +26,11 @@ public class Win32 : IProgram, IEquatable<Win32>
2626 public string UniqueIdentifier { get => _uid ; set => _uid = value == null ? string . Empty : value . ToLowerInvariant ( ) ; } // For path comparison
2727 public string IcoPath { get ; set ; }
2828 /// <summary>
29- /// Path of the file. It's the path of .lnk or .url for .lnk and .url.
29+ /// Path of the file. It's the path of .lnk and .url for .lnk and .url files .
3030 /// </summary>
3131 public string FullPath { get ; set ; }
3232 /// <summary>
33- /// Path of the excutable for .lnk, or the URL for .url.
33+ /// Path of the excutable for .lnk, or the URL for .url. Arguments are included if any.
3434 /// </summary>
3535 public string LnkResolvedPath { get ; set ; }
3636 /// <summary>
@@ -185,7 +185,7 @@ public List<Result> ContextMenus(IPublicAPI api)
185185 {
186186 var info = new ProcessStartInfo
187187 {
188- FileName = ExecutablePath ,
188+ FileName = FullPath ,
189189 WorkingDirectory = ParentDirectory ,
190190 Verb = "runas" ,
191191 UseShellExecute = true
@@ -275,6 +275,12 @@ private static Win32 LnkProgram(string path)
275275 program . LnkResolvedPath = Path . GetFullPath ( target ) ;
276276 program . ExecutableName = Path . GetFileName ( target ) ;
277277
278+ var args = _helper . arguments ;
279+ if ( ! string . IsNullOrEmpty ( args ) )
280+ {
281+ program . LnkResolvedPath += " " + args ;
282+ }
283+
278284 var description = _helper . description ;
279285 if ( ! string . IsNullOrEmpty ( description ) )
280286 {
0 commit comments