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
Different icons for different extentions
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Different icons for different extentions
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
https://www.totalcommander.ch/win/tools/registryinfo.zip
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Different icons for different extentions
[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
@="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.
Re: Different icons for different extentions
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
Image: http://c2n.me/4dz38sP
UPD: Fixed. Config > Icons > All associated + EXE/LNK (slow) need to bee checked
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Different icons for different extentions
Your log shows that there is a misconfiguration:
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
As you can see, the .phtml key refers to a non-existing key "Magento template".[HKEY_CLASSES_ROOT\.phtml]
@="Magento template"
=============================
not found: [HKEY_CLASSES_ROOT\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
https://www.ghisler.com
Re: Different icons for different extentions
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
Re: Different icons for different extentions
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
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