TC often have this phenomenon of icon disappearance

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
ruizrzr1
Junior Member
Junior Member
Posts: 37
Joined: 2022-07-06, 06:39 UTC

TC often have this phenomenon of icon disappearance

Post by *ruizrzr1 »

Why does TC often have this phenomenon of icon disappearance? https://ibb.co/nBHhW6y
https://ibb.co/x3CBLBn Is there any solution?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48070
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC often have this phenomenon of icon disappearance

Post by *ghisler(Author) »

Is there a hidden file desktop.ini in that folder "Bar"? If yes, what does it contain?
Author of Total Commander
https://www.ghisler.com
ruizrzr1
Junior Member
Junior Member
Posts: 37
Joined: 2022-07-06, 06:39 UTC

Re: TC often have this phenomenon of icon disappearance

Post by *ruizrzr1 »

ghisler(Author) wrote: 2022-07-20, 13:29 UTC Is there a hidden file desktop.ini in that folder "Bar"? If yes, what does it contain?
There is desktop.Ini and bar.ico in the bar folder
The content in Desktop.ini is

[.ShellClassInfo]
IconFile=BAR. ico
IconIndex=0
IconResource=BAR. ico,0

In most cases, there is no problem with the display, but sometimes it can be displayed only after the TC is restarted
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC often have this phenomenon of icon disappearance

Post by *petermad »

2ruizrzr1

Is it a typo - or is there really a space between BAR. and ico?

Also the folder Bar has to be marked as system and or read-only - if not, the icon from the desktop.ini file will not be used.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
ruizrzr1
Junior Member
Junior Member
Posts: 37
Joined: 2022-07-06, 06:39 UTC

Re: TC often have this phenomenon of icon disappearance

Post by *ruizrzr1 »

petermad wrote: 2022-07-20, 23:49 UTC 2ruizrzr1

Is it a typo - or is there really a space between BAR. and ico?

Also the folder Bar has to be marked as system and or read-only - if not, the icon from the desktop.ini file will not be used.

Attribute is +RA,I think you are thinking in the wrong direction. In fact, restart can solve the problem, Sometimes TC make some strange mistakes, such as taking a photo as a thumbnail of a folder. Of course, this does not often happen
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48070
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC often have this phenomenon of icon disappearance

Post by *ghisler(Author) »

Try changing this to a full path, otherwise the ico file may not always be found, and also remove the extra space:
[.ShellClassInfo]
IconFile=c:\path_to_file\BAR.ico
IconIndex=0
IconResource=c:\path_to_file\BAR.ico,0
Author of Total Commander
https://www.ghisler.com
Post Reply