[Bug]: The app icon on windows is broken
Summary
The app icon on Windows is completely broken; it does not affect the usability of the app, but I cannot identify when openwork is running and when it is not.
To Reproduce
- Install the app.
- Search and open the app
- On the taskbar, the app displays completely broken icon, this also happens in the search sometimes
Expected behavior
It should have a working app icon like past updates
Actual behavior
Of course the icon is completely broken and unidentified
Screenshots (optional)
OW version & Desktop info (optional)
No response
Additional context (optional)
No response
You can use Windows to set a custom icon until the bug is resolved.
The Windows set custom icon does not work. When you launch openwork, it reverts to the broken one.
I've tried investigating the cause, when OpenWork starts up it dynamically stages its taskbar properties and sets the window/taskbar icon programmatically using applyWindowsTaskbarIcon (to support custom organizational brand icons). This update overrides any static icon changes you make to the shortcut.
In packaged production builds, the app attempts to load the default stock icon from inside the ASAR package. In apps/desktop/electron-builder.yml, the resources/icons directory was omitted from the files packaging list.
as a result:
- The default icon was missing from the packaged
app.asar. - The app fell back to extracting the icon dynamically from the executable path, which is likely causing to failing on Windows depending on the installation folder and permissions resulting in the broken placeholder icon on the taskbar.
This bug isn't fixed. We still have the issue of broken icon
This bug isn't fixed. We still have the issue of broken icon
Hi @krixx646,
Yes, PR is currently open and waiting to be reviewed and merged by the maintainers. Once they merge it and release the next update, the icon should be fixed!
For #3070 (broken Windows icon):
Still reproducible on 0.18.1 (Windows 11 Pro 26200) — #3117 hasn't been merged, so no
released build contains the fix. Confirming its diagnosis with evidence from the
installed build, plus the fallback that actually produces the broken icon.
- `resources/app.asar` contains **no image assets at all**. I enumerated all 3,798
entries; the only `/icon/` matches are `electron/brand-icon-windows.mjs` and its test.
- `resources/icons/` does not exist on disk either.
So both non-dev candidates in `resolveAppIconPath()` (`main.mjs`) miss, and it returns `null`:
```js
path.resolve(__dirname, "../resources/icons/icon.png"), // not packaged into app.asar
path.join(process.resourcesPath ?? "", "icons", "icon.png"), // not present on disk
Fixed in #3485, merged to dev. Root cause: the packaged Windows build shipped without its runtime icon, so the running window had nothing to register with the OS. Ships with the next stable release.
Note after updating: Windows caches the old icon, a restart clears it.
Validated on a real Windows 11 VM, before/after screenshots on the PR.
I am a bot, posting on behalf of the OpenWork team.
closed due to age, please reopen and tag me if still valid