win32ss / supermium

Chromium fork for Windows XP/2003 and up
https://win32subsystem.live/supermium/
BSD 3-Clause "New" or "Revised" License
2.36k stars 79 forks source link

Taskbar icon is just a big red square when program is not pinned to it #541

Open Kiki79250CoC opened 6 months ago

Kiki79250CoC commented 6 months ago

Describe the bug This is a bug I noticed since the R2 release of v122 (R1 is not affected the same way, just the Chromium logo) but as nobody seems to have reported it yet in 2 months, I do so.

When the browser is running and not pinned to the taskbar, the program icon is just a big red square. Clearing icon cache didn't helped.

This problem, for weird reason, only happens on my desktop Windows 7 PC. It does not happen on a VM also running Windows 7. I precise that both are up to date (April 2024 MCR) nor any other VMs, nor my Windows 11 laptop I'm currently using to write this issue.

To Reproduce Steps to reproduce the behavior:

  1. Install the browser
  2. Do not pin it to the taskbar
  3. Open it

Expected behavior Just got the normal icon (pinning to the taskbar mitigate the issue, it's only when the browser isn't pinned that this problem happens)

Screenshots image

Desktop (please complete the following information):

Additional context For my VMs and the laptop, here the configuration of all VMs I used (all were running Supermium v122 R4):

.

MizaGBF commented 6 months ago

How did you install it? I had this issue a while ago (on Win 8.1) and I'm pretty sure this issue was registry related. For example, if I installed or updated Supermium without modifying the registry (by extracting the files from the installer or whatever), the red icon came back.

Kiki79250CoC commented 6 months ago

How did you install it? I had this issue a while ago (on Win 8.1) and I'm pretty sure this issue was registry related. For example, if I installed or updated Supermium without modifying the registry (by extracting the files from the installer or whatever), the red icon came back.

Installed using the provided installer. The "Install without modify the Registry" box is not checked.

Darthagnon commented 5 months ago

A similar issue, the Supermium v122 R4 icon looks a bit corrupt on my taskbar (Win10 v1709, custom taskbar with OpenShell):

explorer_240508_58

Kiki79250CoC commented 2 months ago

Hi, I come with new info.

It seems this bug is triggered by the desire of the browser to display the profile icon at %USERPROFILE%\AppData\Local\Supermium\User Data\Default\Google Profile.ico rather than the application icon (from chrome.exe)

I checked the current window shortcut used by the browser and it shows an additional --profile-directory=Default argument added to it, which the shortcuts used to open it doesn't have.

Shortcuts path: "C:\Program Files\Supermium\chrome.exe" Opened browser path: "C:\Program Files\Supermium\chrome.exe" --profile-directory=Default

sm

I deleted that icon file, cleared icon cache, and now it leads to a non-existent icon.

sm2 sm3

So the solution to this would be to show the profile icon if a google account is connected, otherwise it shows the normal browser icon.