@@ -26,11 +26,11 @@ public class Win32 : IProgram, IEquatable<Win32>
26
26
public string UniqueIdentifier { get => _uid ; set => _uid = value == null ? string . Empty : value . ToLowerInvariant ( ) ; } // For path comparison
27
27
public string IcoPath { get ; set ; }
28
28
/// <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 .
30
30
/// </summary>
31
31
public string FullPath { get ; set ; }
32
32
/// <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.
34
34
/// </summary>
35
35
public string LnkResolvedPath { get ; set ; }
36
36
/// <summary>
@@ -185,7 +185,7 @@ public List<Result> ContextMenus(IPublicAPI api)
185
185
{
186
186
var info = new ProcessStartInfo
187
187
{
188
- FileName = ExecutablePath ,
188
+ FileName = FullPath ,
189
189
WorkingDirectory = ParentDirectory ,
190
190
Verb = "runas" ,
191
191
UseShellExecute = true
@@ -275,6 +275,12 @@ private static Win32 LnkProgram(string path)
275
275
program . LnkResolvedPath = Path . GetFullPath ( target ) ;
276
276
program . ExecutableName = Path . GetFileName ( target ) ;
277
277
278
+ var args = _helper . arguments ;
279
+ if ( ! string . IsNullOrEmpty ( args ) )
280
+ {
281
+ program . LnkResolvedPath += " " + args ;
282
+ }
283
+
278
284
var description = _helper . description ;
279
285
if ( ! string . IsNullOrEmpty ( description ) )
280
286
{
0 commit comments