Different icons for different extentions

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
MaxA
Junior Member
Junior Member
Posts: 7
Joined: 2016-10-09, 18:40 UTC

Different icons for different extentions

Post by *MaxA »

Hello,

I had PhpStorm assosiated with php and phtml files so the icon was the same. File type name was JetBrains Phpshorm file.
I changed filetype and icon. Working in Ureal Commander and Explorer well, but I got the blank icon in TC

Looks like the bug
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Different icons for different extentions

Post by *ghisler(Author) »

This can happen when the registry contains old data pointing to deleted programs etc. There is a multitude of ways to define icons, and it's not always clear which order to use. Please use my tool registry info for the affected extensions and post the results here:
https://www.totalcommander.ch/win/tools/registryinfo.zip
Author of Total Commander
https://www.ghisler.com
MaxA
Junior Member
Junior Member
Posts: 7
Joined: 2016-10-09, 18:40 UTC

Re: Different icons for different extentions

Post by *MaxA »

[HKEY_CLASSES_ROOT\.phtml]
@="Magento template"
=============================
not found: [HKEY_CLASSES_ROOT\Magento template]
=============================
[Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.phtml]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.phtml\OpenWithList]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.phtml\OpenWithProgids]
"PhpStorm2020.1"=hex(0):
"Magento template"=hex(0):

[HKEY_CLASSES_ROOT\.php]
@="PHP file"
=============================
not found: [HKEY_CLASSES_ROOT\PHP file]
=============================
[Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.php]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.php\OpenWithList]
"a"="phpstorm64.exe"
"MRUList"="a"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.php\OpenWithProgids]
"PHP file"=hex(0):
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.php\UserChoice]
"ProgId"="Applications\phpstorm.exe"
"Hash"="8gL8kTk4MrI="
=============================
Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.php\UserChoice="Applications\phpstorm.exe"
[HKEY_CLASSES_ROOT\Applications\phpstorm.exe]
[HKEY_CLASSES_ROOT\Applications\phpstorm.exe\shell]
[HKEY_CLASSES_ROOT\Applications\phpstorm.exe\shell\open]
"FriendlyAppName"="PhpStorm 2020.1"
[HKEY_CLASSES_ROOT\Applications\phpstorm.exe\shell\open\command]
@=""F:\Program Files\JetBrains\PhpStorm 2020.1\bin\phpstorm64.exe" "%1""

I clicked the both extensions, the both were opened in PhpStorm as required
Last edited by MaxA on 2021-10-06, 05:52 UTC, edited 1 time in total.
MaxA
Junior Member
Junior Member
Posts: 7
Joined: 2016-10-09, 18:40 UTC

Re: Different icons for different extentions

Post by *MaxA »

The another one issue at once - no colored folder in TC 10, but exists in 9.51

Image: http://c2n.me/4dz38sP

UPD: Fixed. Config > Icons > All associated + EXE/LNK (slow) need to bee checked
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Different icons for different extentions

Post by *ghisler(Author) »

Your log shows that there is a misconfiguration:
[HKEY_CLASSES_ROOT\.phtml]
@="Magento template"
=============================
not found: [HKEY_CLASSES_ROOT\Magento template]
=============================
As you can see, the .phtml key refers to a non-existing key "Magento template".
Maybe there was a tool "Magento" which you uninstalled?
PHP also has a faulty association. But it at least has a UserChoice registry key which should send TC to the right icon:
F:\Program Files\JetBrains\PhpStorm 2020.1\bin\phpstorm64.exe
Author of Total Commander
https://www.ghisler.com
MaxA
Junior Member
Junior Member
Posts: 7
Joined: 2016-10-09, 18:40 UTC

Re: Different icons for different extentions

Post by *MaxA »

I especially rename the type to assign different icons. The file type was named like "JetBrains PhphStorm file" and php and phtml files had the same icon. I renamed the type assigned the icons and got success in Explorer and Unreal Commander, but not in TC. That's why that looks as bug for me, because that solution works well in other file managers
MaxA
Junior Member
Junior Member
Posts: 7
Joined: 2016-10-09, 18:40 UTC

Re: Different icons for different extentions

Post by *MaxA »

More tests:

1. Multi Commander - working well
2. Q-Dir - working well
3. WinNC - working well
4. Salamander - working well

Look like this solution is problematic lust for TC
Post Reply