Keypirinha icon indicating copy to clipboard operation
Keypirinha copied to clipboard

Font and layout of shortcuts are ignored

Open mark-cordell opened this issue 4 years ago • 1 comments

Steps: Create a .lnk file with Target = something like "%windir%\system32\cmd.exe /k call path\init.cmd" Modify the Layout of the shortcut to have a custom screen buffer size and window size. Modify the Font Use Keypirinha to launch the shortcut

Expected: The shortcut to be launched with all its settings, just like it would be if you launched it from File Explorer or the Start Menu

Actual: Keypirinha extracts part of the information from the .lnk file and launches the process itself. It ignores other parts of the .lnk file.

It's not clear to me why Keypirinha doesn't just do ::ShellExecute(0, L"open", L"path\file.lnk", ...) or its equivalent to open shortcut files. I see several other issues that have been opened here because of that, like handling quotes in certain spots in the arguments. It seems like those issues would be fixed and the logic would be simpler to just use something like ShellExecute.

mark-cordell avatar Feb 21 '21 22:02 mark-cordell

Other shortcut properties, like Run: Minimized or a changed icon are ignored as well.

YZN3RF avatar Jun 03 '22 11:06 YZN3RF