No app icon shown for symlinks
Moderators: Hacker, petermad, Stefan2, white
No app icon shown for symlinks
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.
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
Ukraine's National Bank special bank account:
UA843000010000000047330992708
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
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...
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...
Well, I have a Link Shell Extension installed, maybe it makes Explorer to show app icons in symlinks. Can anyone confirm it?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...
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Ukraine's National Bank special bank account:
UA843000010000000047330992708
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
Why don't you try disabling it and see what happens?DrShark wrote:Well, I have a Link Shell Extension installed, maybe it makes Explorer to show app incons in symlinks. Can anyone confirm it?
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
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
I can confirm, this one is indeed a bug...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 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).elgonzo wrote:Why don't you try disabling it and see what happens?DrShark wrote:Well, I have a Link Shell Extension installed, maybe it makes Explorer to show app incons in symlinks. Can anyone confirm it?
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
Ukraine's National Bank special bank account:
UA843000010000000047330992708
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
Is the .LNK extension present also in the "few other types" extensions list used for OLE2 method?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.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Ukraine's National Bank special bank account:
UA843000010000000047330992708
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
???
This isn't about lnk files - it's about file system links (hard links or symbolic links).
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
https://www.ghisler.com
ghisler(Author) wrote:???
This isn't about lnk files - it's about file system links (hard links or symbolic links).
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.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;
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Ukraine's National Bank special bank account:
UA843000010000000047330992708
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
SHGFI_SYSICONINDEX | SHGFI_SMALLICON | SHGFI_PIDL | SHGFI_SHELLICONSIZE
for the small icon.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com