Not correct custom icon in tab of special folder in real FS

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:

Not correct custom icon in tab of special folder in real FS

Post by *DrShark »

At least in Windows Vista and 7 (didn't check others) some shell folders can have two icons: one used in Shell namespace and another on real filesystem.

For example, I usually change user profile folder icon to the same that used for user on logon screen, so the desktop.ini of my c:\Users\Myusername\ is like this:
[.ShellClassInfo]
IconResource=C:\Windows\winsxs\x86_microsoft-windows-usertiles-client_31bf3856ad364e35_6.0.6000.16386_none_275f21681c03592c\user.bmp,0
In Explorer, if to navigate to this folder using real filesystem path c:\Users\Myusername\, it will show this user.bmp icon in both address and status bars, and the same it will show for Myusername if to go up to c:\Users.
The same time, if to open Myusername within virtual Desktop item in Explorer, it will show different system icon for user profile folder (easeist way to do it is to activate Tree in Explorer and click on Desktop).

TC's behaviour is almost the same: different folder icons for virtual (\\Desktop\Myusername\) and real filesystem (c:\Users\Myusername\) user profile folder in file panels, however for tab with opened real filesystem path TC is using virtual object icon instead of real fs one.
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) »

Could you give me more details, please? In your example desktop.ini, there is just one icon definition. How is the other icon defined?
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:Could you give me more details, please? In your example desktop.ini, there is just one icon definition. How is the other icon defined?
Yes, desktop.ini has just one definition, that's for my custom icon; I don't know how defined the second (default) icon, maybe somewhere in registry. I can offer screenshots of this folder with different folder icons on Windows Vista's Explorer and TC (my custom icon from desktop.ini is the flower on screenshots):
Vista's Explorer
TC 9.00a on Vista
There my userprofile folder name is those starting with V letter (I masked all others).
Each screenshot has 4 folder views, they are (in order on screenshots):
1) \\Desktop\ 2) C:\Users\
3) \\Desktop\V[masked]\ 4) C:\Users\V[masked]\
The buggy moment (difference with Explorer behaviour) is a view #4 on TC's screenshot, where in its tab header TC doesn't show custom flower icon, but instead shows second (default) icon.
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) »

Thanks, I will try to reproduce it.
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 »

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