Just Manager Forum

Official Just Manager forum

You are not logged in.

#1 2026-08-10 06:17:40

navigat0r
Member
Registered: 2013-02-13
Posts: 221

USB icon not updated correctly

I have an USB stick (containing a .inf and .ico file) attached.
All file managers show the correct icon. [OK]

After rejecting and re-attaching the USB stick the icon is no longer correct in JM RC4:
2026-08-10-08h04-36.gif


Win10/11

Offline

#2 2026-08-12 07:58:47

nleontiev
Lead developer
From: SPb
Registered: 2012-09-19
Posts: 1,313
Website

Re: USB icon not updated correctly

On USB drive arrival, JM receives WM_DEVICECHANGE notify and immediately calls SHGetFileInfo to get drive icon and label. Since USB contains autorun.inf, Shell needs some time to extract the info, that's why JM retrieves default removable icon. On first SHGetFileInfo call, Shell caches info per process, so subsequent calls will return cached info, despite the extracted info.
Solution: if autorun.inf exists, USB drive will be delayed. Will be fixed in the next version.

Offline

#3 2026-09-28 10:14:58

nleontiev
Lead developer
From: SPb
Registered: 2012-09-19
Posts: 1,313
Website

Re: USB icon not updated correctly

Fixed in 1.0.0-rc.5.

Offline

Board footer

Powered by FluxBB