IconResource from 64-bit program executable not usable by XYplorer?

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

My OneDrive folder has a generic icon in XYplorer, but a picture of a cloud in File Explorer. Of course, the folder icon is determined by the settings in the desktop.ini file.

The desktop.ini file in my OneDrive folder has the following information in it for where the parent folder gets its icon from:

[.ShellClassInfo]
IconResource=C:\Program Files\Microsoft OneDrive\OneDrive.exe,1


Can XYplorer not display the correct icon for my OneDrive folder because the IconResource is pointing to a 64-bit program executable?

File Explorer:
file_explorer.png
XYplorer:
xyplorer.png
To see the attached files, you need to log into the forum.

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

This is on Windows 10 by the way. I'm happy to run scripts and help with any debugging to find out why XYplorer can't display the OneDrive folder icon.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

64-bit program executable is no problem.

Note that the folder should have the Read-Only attribute set for the icon defined in desktop.ini to be shown.

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

Yes, my OneDrive folder does already have the correct attributes currently set on it.

Read-Only, Directory, Archive.

Same as on a fresh install of Windows 10 with OneDrive installed.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

That's the correct path?
C:\Program Files\Microsoft OneDrive\OneDrive.exe

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

Yes, the path is correct. File Explorer shows the correct default icon on my OneDrive folder just fine.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

And it's a literal path, not any variables?

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

Yes, it's a literal path.

Actually, if I point the path in the desktop.ini to somewhere that doesn't even exist, what should normally happen is that the default folder icon used by Windows for all other folders should then be displayed. But in that case, XYplorer still shows the icon in the screenshot in my first post. It's like XYplorer is simply not ever retrieving any icon for that particular folder for some reason.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

Hm. I cannot see why this should not work. Can you change the path to some other existing file, then restart XYplorer.

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

OK, I've tried that. I changed the icon to that of a different program, HandBrake. In File Explorer I immediately see the HandBrake icon being used for my OneDrive folder. But even after quitting and restarting XYplorer, it still shows the "unknown" icon (the one in my screenshot in the first post) for the OneDrive folder.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

Try this alternative syntax:

Code: Select all

[.ShellClassInfo]
IconFile=C:\Program Files\Microsoft OneDrive\OneDrive.exe
IconIndex=1
Also set the HIDDEN attribute to Desktop.ini.

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

OK, I tried that alternative syntax. It made no difference in File Explorer or XYplorer after restarting. Still works fine in File Explorer, still doesn't work for XYplorer.

The desktop.ini already had the hidden attribute set.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

out of ideas :|

elqasar2
Posts: 255
Joined: 27 Oct 2017 14:04
Location: Win 11, 100% scaling, v27.20.0700

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by elqasar2 »

It's a pity there's no way to say to XYplorer: tell me where you're getting the icon for the selected file/folder.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: IconResource from 64-bit program executable not usable by XYplorer?

Post by admin »

Tested it on Win10. Works as advertised. The problem must be somewhere else.
To see the attached files, you need to log into the forum.

Post Reply