I've searched the forum and find https://ghisler.ch/board/viewtopic.php?p=390900&hilit=main+program+icon#p390900. but doesn't work for TC 11.00.
Anyone can help me?
Is there any way to change the taskbar icon (main program icon)?
Moderators: Hacker, petermad, Stefan2, white
Re: Is there any way to change the taskbar icon (main program icon)?
Code: Select all
[Configuration]
IconLib=%COMMANDER_PATH%\totalcmd.icl
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Re: Is there any way to change the taskbar icon (main program icon)?
I've tried. It can change the titlebar icon but can't change taskbar icon. You can?beb wrote: 2023-10-15, 15:41 UTCThe method described there is absolutely working for Total Commander 11.02RC2.Code: Select all
[Configuration] IconLib=%COMMANDER_PATH%\totalcmd.icl
Re: Is there any way to change the taskbar icon (main program icon)?
As far as I understand there are several kinds of the taskbar icons/areas:
- Icons of the common taskbar buttons that are there upon applications get running.
- Icons of the pinned taskbar items that are always there and can take the form of the above upon applications get running).
- Icons in the notification area (system tray) that are there upon minimizing running applications if the applications have appropriate settings (which Total Commander does).
If I apply the said IconLib method, all the mentioned icons are getting changed, except the pinned taskbar item.
In its turn pinned by a user taskbar items are located over there:
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\
If you look at Total Commander.lnk which becomes available there as soon as you apply the pinning option, you will see that the "path to icon" in the .lnk is not specified. So you can try to choose a specific icon for that .lnk.
- Icons of the common taskbar buttons that are there upon applications get running.
- Icons of the pinned taskbar items that are always there and can take the form of the above upon applications get running).
- Icons in the notification area (system tray) that are there upon minimizing running applications if the applications have appropriate settings (which Total Commander does).
Code: Select all
[Configuration]
IconLib=%COMMANDER_PATH%\totalcmd.icl
In its turn pinned by a user taskbar items are located over there:
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\
If you look at Total Commander.lnk which becomes available there as soon as you apply the pinning option, you will see that the "path to icon" in the .lnk is not specified. So you can try to choose a specific icon for that .lnk.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Re: Is there any way to change the taskbar icon (main program icon)?
I have tried it by myself and it looks as though the pinned taskbar icon is not getting changed, and is still being taken from the .exe.beb wrote: 2023-10-16, 06:49 UTC ...In its turn pinned by a user taskbar items are located over there:
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\
If you look at Total Commander.lnk which becomes available there as soon as you apply the pinning option, you will see that the "path to icon" in the .lnk is not specified. So you can try to choose a specific icon for that .lnk.
Illustrations:
taskbar button icon, notification area/system tray icon, and app title icon (all the three are good, working):
Image: https://i.imgur.com/VTMFZKO.png
notification area/system tray icon (good, working) and pinned icon (bad, not working):
Image: https://i.imgur.com/aYwAu8G.png
pinned item menu icon (good, working) and pinned icon (bad, not working):
Image: https://i.imgur.com/tTQbu9z.png
So, it appears the pinned taskbar item icon is affected neither by the Total Commander .ini IconLib setting, nor by directly changing the dedicated .lnk in the user's AppData. Thus, looks as though there are some system-related limitations or a bug.
Edit:
The pinned taskbar item icon display change requires rebuilding of the Windows Icon Cache.
There are several ways to do that, which finally is just deleting of "%LocalAppData%\Microsoft\Windows\Explorer\iconcache*.db" files and "%LocalAppData%\IconCache.db" file.
(Windows Explorer restart may be required as well).
Thereafter the pinned taskbar icon becomes rendered/displayed as intended:
Image: https://i.imgur.com/xSHtzdr.png
Edit2:
Conclusions.
- Total Commander .ini [Configuration] section IconLib parameter positively affects any related icon rendering including those in various areas of the Windows taskbar, except the pinned icon.
- In its turn, the latter (the pinned icon) can be changed manually (as described) and may require Windows Icon Cache rebuilding and Windows Explorer restart the change to take immediate effect.
- I'm not sure if the pinned icon automatic change by Total Commander itself (in case of said .ini modification) was/is/and would ever be implemented by the author. However, you can try to fill in the correspondent request on the TC suggestions board.
Last edited by beb on 2023-10-16, 10:19 UTC, edited 3 times in total.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Re: Is there any way to change the taskbar icon (main program icon)?
Thanks for the detailed explanation!beb wrote: 2023-10-16, 07:28 UTCI have tried it by myself and it looks as though the pinned taskbar icon is not getting changed, and is still being taken from the .exe.beb wrote: 2023-10-16, 06:49 UTC ...In its turn pinned by a user taskbar items are located over there:
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\
If you look at Total Commander.lnk which becomes available there as soon as you apply the pinning option, you will see that the "path to icon" in the .lnk is not specified. So you can try to choose a specific icon for that .lnk.
Illustrations:
taskbar button icon, notification area/system tray icon, and app title icon (all the three are good, working):
Image: https://i.imgur.com/VTMFZKO.png
notification area/system tray icon (good, working) and pinned icon (bad, not working):
Image: https://i.imgur.com/aYwAu8G.png
pinned item menu icon (good, working) and pinned icon (bad, not working):
Image: https://i.imgur.com/tTQbu9z.png
So, it appears the pinned taskbar item icon is affected neither by the Total Commander .ini IconLib setting, nor by directly changing the dedicated .lnk in the user's AppData. Thus, looks as though there are some system-related limitations or a bug.
Edit:
The pinned taskbar item icon display change requires rebuilding of the Windows Icon Cache.
There are several ways to do that, which finally is just deleting of "%LocalAppData%\Microsoft\Windows\Explorer\iconcache*.db" files and "%LocalAppData%\IconCache.db" file.
(Windows Explorer restart may be required as well).
Thereafter the pinned taskbar icon becomes as intended:
Image: https://i.imgur.com/xSHtzdr.png
Edit2:
Conclusions.
- Total Commander .ini [Configuration] section IconLib parameter positively affects any related icons including those of the Windows taskbar, except the pinned icon.
- In its turn, the latter (the pinned icon) can be changed manually (as described) and may require Windows Icon Cache rebuilding and Windows Explorer restart the change to take immediate effect.
- I'm not sure if the pinned icon automatic change by Total Commander itself (in case of said .ini modification) was/is/and would ever be implemented by the author. However, you can try to fill in the correspondent request on the TC suggestions board.