No app icon shown for symlinks

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

No app icon shown for symlinks

Post by *DrShark »

To reproduce:
1) using e.g. NTLinksMaker make a symbolic link some executable, like totalcmd.exe or notepad.exe;
or
1) make an lnk shortcut of some executable, like totalcmd.exe or notepad.exe;
2) using e.g. NTLinksMaker make a symbolic link of that lnk file;
then
* open a folder with the symlink in Windows Explorer, or just press LAlt+Enter to see symlink properties: it will show the icon of executable for symlink. Then look at TC panel with our symlink in the file panel: it shows some default icon instead of executable one.

Reproduced on TC 9.00a on Vista 32-bit even with "All associated + EXE/LNK (slow)" option set in TC settings.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Post by *gdpr deleted 6 »

At least on Windows 7 x64 (which i use), Windows Explorer does not behave as you described.

Making a symbolic file link with a *.lnk shortcut as target will also only show some standard icon in Windows Explorer. Windows explorer (Win7 x64) will not show the icon as defined by the shortcut file. Both TC as well as Windows Explorer show the same standard icon...
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

elgonzo wrote:At least on Windows 7 x64 (which i use), Windows Explorer does not behave as you described.

Making a symbolic file link with a *.lnk shortcut as target will also only show some standard icon in Windows Explorer. Windows explorer (Win7 x64) will not show the icon as defined by the shortcut file. Both TC as well as Windows Explorer show both the same standard icon...
Well, I have a Link Shell Extension installed, maybe it makes Explorer to show app icons in symlinks. Can anyone confirm it?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Post by *gdpr deleted 6 »

DrShark wrote:Well, I have a Link Shell Extension installed, maybe it makes Explorer to show app incons in symlinks. Can anyone confirm it?
Why don't you try disabling it and see what happens?
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

As for me, TC doesn't show even icon for direct TOTALCMD.exe symlink (I only see generic application icon with link arrow overlay) while Explorer does...

Code: Select all

mklink D:\TOTALCMD$.EXE D:\TOTALCMD\TOTALCMD.EXE
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Post by *gdpr deleted 6 »

MVV wrote:As for me, TC doesn't show even icon for direct TOTALCMD.exe symlink (I only see generic application icon with link arrow overlay) while Explorer does...

Code: Select all

mklink D:\TOTALCMD$.EXE D:\TOTALCMD\TOTALCMD.EXE
I can confirm, this one is indeed a bug...
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

elgonzo wrote:
DrShark wrote:Well, I have a Link Shell Extension installed, maybe it makes Explorer to show app incons in symlinks. Can anyone confirm it?
Why don't you try disabling it and see what happens?
I will try it, if I'll find a correct way to disable it without uninstall (and it won't be confirmed by other users that LSE isn't related to the issue). Since I don't have much space, at least for now I don't want to use uninstall/reinstall or uninstall/recovery to restore point methods for LSE to test its possible relation (these actions may auto-create new restore points that will eat more space).

Meanwhile there'e screenshot of symlink of totalcmd's lnk where the TC icon is visible in the title of Explorer's properties (it also shown on Общие/General tab) and default icon for it is visible in TC panel.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Currently TC doesn't do anything special for symbolic links - it shows the icon for the extension, or (for EXE files and a few other types) requests the icon via OLE2 from Windows.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

But Explorer does show proper icon for EXE symlink while TC doesn't...
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:Currently TC doesn't do anything special for symbolic links - it shows the icon for the extension, or (for EXE files and a few other types) requests the icon via OLE2 from Windows.
Is the .LNK extension present also in the "few other types" extensions list used for OLE2 method?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

???
This isn't about lnk files - it's about file system links (hard links or symbolic links).
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:???
This isn't about lnk files - it's about file system links (hard links or symbolic links).
DrShark wrote:1) make an lnk shortcut of some executable, like totalcmd.exe or notepad.exe;
2) using e.g. NTLinksMaker make a symbolic link of that lnk file;
So on my system TC also doesn't show the icon of symlink of lnk file that points to exe file. I even posted a screenshot in this post. That's why I asked whether or not TC use the same method of requesting the icons for lnk files as it use for exe files.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, it uses the same method if you have "All+EXE/LNK" enabled: SHGetFileInfo with parameter
SHGFI_SYSICONINDEX | SHGFI_SMALLICON | SHGFI_PIDL | SHGFI_SHELLICONSIZE
for the small icon.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Seems to be fixed in TC 9.10 pre-beta and public beta 1.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply