openwork icon indicating copy to clipboard operation
openwork copied to clipboard

[Bug]: The app icon on windows is broken

Open krixx646 opened this issue 4 months ago • 8 comments

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.

Image

To Reproduce

  1. Install the app.
  2. Search and open the app
  3. 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)

Image

OW version & Desktop info (optional)

No response

Additional context (optional)

No response

krixx646 avatar Jul 24 '26 05:07 krixx646

You can use Windows to set a custom icon until the bug is resolved.

Hosseinghorbani0 avatar Jul 24 '26 18:07 Hosseinghorbani0

The Windows set custom icon does not work. When you launch openwork, it reverts to the broken one.

krixx646 avatar Jul 25 '26 10:07 krixx646

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:

  1. The default icon was missing from the packaged app.asar.
  2. 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.

Pallavikumarimdb avatar Jul 25 '26 13:07 Pallavikumarimdb

This bug isn't fixed. We still have the issue of broken icon

krixx646 avatar Jul 25 '26 20:07 krixx646

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!

Image

Pallavikumarimdb avatar Jul 25 '26 20:07 Pallavikumarimdb

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

krixx646 avatar Jul 25 '26 20:07 krixx646

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.

benjaminshafii avatar Aug 04 '26 10:08 benjaminshafii

closed due to age, please reopen and tag me if still valid

OmarMcAdam avatar Oct 28 '26 22:10 OmarMcAdam