Page 1 of 2

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

Posted: 24 Aug 2022 04:22
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

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

Posted: 24 Aug 2022 18:30
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.

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

Posted: 24 Aug 2022 19:38
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.

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

Posted: 24 Aug 2022 19:45
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.

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

Posted: 24 Aug 2022 19:53
by admin
That's the correct path?
C:\Program Files\Microsoft OneDrive\OneDrive.exe

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

Posted: 24 Aug 2022 19:56
by elqasar2
Yes, the path is correct. File Explorer shows the correct default icon on my OneDrive folder just fine.

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

Posted: 24 Aug 2022 20:11
by admin
And it's a literal path, not any variables?

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

Posted: 24 Aug 2022 20:21
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.

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

Posted: 24 Aug 2022 21:02
by admin
Hm. I cannot see why this should not work. Can you change the path to some other existing file, then restart XYplorer.

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

Posted: 24 Aug 2022 21:09
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.

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

Posted: 24 Aug 2022 21:12
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.

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

Posted: 24 Aug 2022 21:19
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.

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

Posted: 24 Aug 2022 21:25
by admin
out of ideas :|

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

Posted: 24 Aug 2022 21:25
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.

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

Posted: 25 Aug 2022 09:19
by admin
Tested it on Win10. Works as advertised. The problem must be somewhere else.