Why is the folder’s icon (Windows folder icons) the same as the shortcut’s?

321 views
Skip to first unread message

Bill

unread,
Oct 25, 2023, 11:00:32 PM10/25/23
to OneCommander
I'm using Windows folder icons pack, and the `Override all folder icons with` option is also `Windows`:

Screenshot 2023-10-26 104948.png

I have found while the `Override all folder icons with` option is set to `Windows` , the folder's icon just looks the same as shortcut's icon:

Screenshot 2023-10-26 102559.png

I still can't get it. When I set the `Override all folder icons with` option to `Windows`, it's supposed to be the default Windows folder icons. While in Windows Explorer, I can easily tell a folder icon from a shortcut icon:

Screenshot 2023-10-26 102850.png

Although we can tell them from the folder name(- Shortcut.lnk) and type([DIR]/lnk) in OneCommander, however, I think we should also make a difference between their icons like what Explorer does. After all, they are not the same type.

What do you think? Could you explain why they look the same at present? Is this a bug or something that I have not understood yet?

Emanuel Teixeira

unread,
Oct 26, 2023, 6:08:32 AM10/26/23
to OneCommander
something strange going on with your system, oc installation bugged or whatever
folder icon (theme) shouldn't have the shortcut thingy... mine (oc portable) doesn't
either is a folder or a shortcut of it

OneCommander Support

unread,
Oct 26, 2023, 3:04:59 PM10/26/23
to OneCommander
It shouldn't be. OC just asks Windows for a default folder icon and that is what it gets on your machine but I don't know why. I can look for alternative way to get default icons but without being able to reproduce it I won't know if it makes a difference on your PC

Bill

unread,
Oct 26, 2023, 9:48:29 PM10/26/23
to OneCommander
I used to use portable version from official website, recently I'm using portable version from Scoop, both version have the same bug I have mentioned. And my OS version is Windows 10 22H2, recently I have re-installed Windows 10, but I still have this bug. I have ran some commands like `/scannow` try to repair some system files, but it didn't work. What should I do now?

Bill

unread,
Oct 26, 2023, 9:52:29 PM10/26/23
to OneCommander
My OS version is Windows 10 22H2, recently I have re-installed Windows 10, but I still have this bug. I have ran some commands like `/scannow` try to repair some system files, but it still didn't work. Is there any other Windows 10 users have the similar bugs? What should I do now?

OneCommander Support

unread,
Oct 26, 2023, 11:07:38 PM10/26/23
to OneCommander
Open folder where OneCommander.exe resides (About>Exe Location). Check how the icons looks like of that folder? Does it have shortcut overlay?
OC explicitly asks there for a system folder icon with no overlays, so I have no idea why Windows would provide icon with an overlay.

Bill

unread,
Oct 26, 2023, 11:46:17 PM10/26/23
to OneCommander
That folder was opened in Windows Explorer, and it was normal:

Screenshot 2023-10-27 114048.png

I have once copied some old settings files to a brand new installed OC after the OS re-installation, it wouldn't cause troubles, would it?

Screenshot 2023-10-27 114505.png

OneCommander Support

unread,
Oct 27, 2023, 12:23:07 AM10/27/23
to OneCommander
I mean the icon for that "current" folder. What if you right-click it and properties. Is the icon of that folder with overlay shortcut overlay?

The settings don't contain anything related to that, so it shouldn't break it. 

What if you download portable version from the site, unpack it in some random folder, Close current version that you run from Scoop, and then open the newly downloaded version's exe file - is the folder icon with shortcut overlay also?

Bill

unread,
Oct 27, 2023, 3:44:25 AM10/27/23
to OneCommander
Thank you for your advise, this time I get it. The current folder does have a shortcut overlay:

Screenshot 2023-10-27 151841.png

Actually, it's not a folder, it's a Directory Junction (https://github.com/ScoopInstaller/Scoop/wiki/The-'Current'-Version-Alias):

Screenshot 2023-10-27 152100.png

I tried to set the current folder's icon to some other icons, but it didn't work, the shortcut overlay is always there.

Could you add something like a if statement that can set OC folder's icon according to not only the parent folder where OC.exe locates? I'm not familiar with the mechanism, could you get the parent folder's type, i.e. whether it's a normal folder or directory junction? If you can judge it accurately, when you get to know OC.exe is in a directory junction, could you set the OC folder's icon to a normal folder that is in the same folder with OC.exe, such as the x64 folder? If you can't judge it accurately, could you just read the parent folder's name, if it's "current", then set the OC folder's icon to a normal folder? Or do you have any suggestions that can set the current folder's icon to a normal folder's icon?

OneCommander Support

unread,
Oct 27, 2023, 6:02:39 PM10/27/23
to OneCommander
That explains it. Thanks! Let me check if there is a permanent fix and include it for 3.58

Bill

unread,
Oct 27, 2023, 9:03:24 PM10/27/23
to OneCommander
💙Thank you for your effort and the fix!

Bill

unread,
Dec 7, 2023, 7:23:48 AM12/7/23
to OneCommander
Thanks for the fix! It's almost perfect now, but it still displays a shortcut icon in the settings' option:

Screenshot 2023-12-07 201704.png

Could I make it return to normal by clearing some cache? If it could work, could you give me some suggestions about the cleaning?

Or if it couldn't, could you please fix the minor UI bug? Thank you.

OneCommander Support

unread,
Dec 12, 2023, 2:22:42 PM12/12/23
to OneCommander
Fixed now in 3.61.2. Thanks!

Bill

unread,
Dec 13, 2023, 6:57:55 AM12/13/23
to OneCommander
Thank you for the fix!
Reply all
Reply to author
Forward
0 new messages