This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TC shows only standard icon for URL files

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC Behaviour which will not be changed Printable version
View previous topic :: View next topic  
Author Message
DrShark
Power Member
Power Member


Joined: 03 Nov 2006
Posts: 928
Location: Kyiv, 68/262

PostPosted: Thu Oct 12, 2017 1:09 pm    Post subject: TC shows only standard icon for URL files Reply with quote

This is a known issue. For example, for me TC shows index 5 icon from C:\Windows\System32\url.dll for all *.url files while Windows Explorer shows per-file icons if they are referenced in url to some local file or the URL file has the icon stored in file's own NTFS alternative data stream called :favicon.

The explanation from TC author I got in emails:
Christian Ghisler wrote:
Total Commander does NOT use iconhandler [defined for association in Registry] when there is a DefaultIcon entry, unless it is set to %1 or "%1". This is intentional to speed up loading of icons.

[So] TC currently only gets per file icons if the DefaultIcon is set to %1 [in Registry or in TC via Files - Associate - Edit type - Change icon]. However, even if I set this to %1 for URL files, Windows
always returns the default icon to Total Commander
.


Possible solutions to get per-file icons in TC are welcome, because per file icons would make it much easier to work with many url files.

The current workaround I use is the opensource NTFS FileStreams (v2) FS-plugin by ProgMan13.
It shows url files as folders, and shows the url icons for such folders (as well as inner ::$DATA files) if url file has custom icon.
To launch the url file from plugin, I'm starting the ::$DATA file (located inside url folder) using either Enter key or mouse doubleclick.

This workaround, however, has some limitations because of its FS-plugin nature: currently it's not possible to start that ::$DATA file from TC's command line or button bar using a command like this one:
"\\\NTFS - streams\$%Favorites%\SomeInternetShortcut.url\::$DATA"

TC also currently doesn't show the per file icon (showed in by plugin in TC filelist) for the button if such path is used in button's Icon path.
_________________
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right


Last edited by DrShark on Sat Oct 14, 2017 3:31 am; edited 1 time in total
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Fri Oct 13, 2017 4:04 am    Post subject: Reply with quote

This behaviour is fully intentional and will not be changed, sorry.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DrShark
Power Member
Power Member


Joined: 03 Nov 2006
Posts: 928
Location: Kyiv, 68/262

PostPosted: Sat Oct 14, 2017 2:21 am    Post subject: Reply with quote

ghisler(Author) wrote:
This behaviour is fully intentional and will not be changed, sorry.
You mean you know how to show per file icons for *.url but you don't want implement that into TC? Why?
_________________
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right
Back to top
View user's profile Send private message
DrShark
Power Member
Power Member


Joined: 03 Nov 2006
Posts: 928
Location: Kyiv, 68/262

PostPosted: Sat Oct 14, 2017 3:27 am    Post subject: Reply with quote

OK, I see now, for *.url the icon is actually definded Windows Registry as
Code:
[HKEY_CLASSES_ROOT\InternetShortcut\DefaultIcon]
@="C:\\Windows\\System32\\url.dll,5"
and there's also the icon handler record present in HKEY_CLASSES_ROOT\InternetShortcut\, but TC doesn't use it because DefaultIcon is not %1 or "%1".

How about adding a feature, for future TC versions, to let user define custom list of extensions where TC will use icon returned by icon handler even if DefaultIcon is not %1 or "%1"?
_________________
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right
Back to top
View user's profile Send private message
Dalai
Power Member
Power Member


Joined: 28 Jan 2005
Posts: 5714
Location: Meiningen (Südthüringen)

PostPosted: Sat Oct 14, 2017 8:39 am    Post subject: Reply with quote

I find it very distracting if files of the same file type use/show different icons. That's definitely something I don't want to have in TC. If this gets implemented, please make it optional.

Regards
Dalai
_________________
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Sun Oct 15, 2017 1:17 am    Post subject: Reply with quote

Yes, I mean that TC ignores the icon handler if the DefaultIcon isn't set to %1 or "%1". Maybe I will make it an option, but there isn't enough time now before the release of TC 9.10 final.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DrShark
Power Member
Power Member


Joined: 03 Nov 2006
Posts: 928
Location: Kyiv, 68/262

PostPosted: Mon Oct 16, 2017 7:34 am    Post subject: Reply with quote

ghisler(Author) wrote:
Maybe I will make it an option, but there isn't enough time now before the release of TC 9.10 final.
Thanks, I think it won't hurt anyone if you'll make it as wincmd.ini parameter with user defined extensions (with masks like *.* to tell TC to prefer icon handler for all extensions).

Maybe it's better to move this topic to Suggestions forum since behavior may me changed in future TC versions?
_________________
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC Behaviour which will not be changed All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group