Skip to content

Fix broken app icon on debian dock#33635

Draft
MidhunSureshR wants to merge 1 commit into
developfrom
midhun/fix-linux-app-icon
Draft

Fix broken app icon on debian dock#33635
MidhunSureshR wants to merge 1 commit into
developfrom
midhun/fix-linux-app-icon

Conversation

@MidhunSureshR
Copy link
Copy Markdown
Member

@MidhunSureshR MidhunSureshR commented May 27, 2026

Closes #33472

On my debian 13 dock:
image

I can get it to work if I manually edit the desktop file so that StartupWMClass is element-desktop-nightly.

@t3chguy
Copy link
Copy Markdown
Member

t3chguy commented May 27, 2026

This seems likely to also fix #33472

Comment on lines +138 to +141
// By default, electron builder will set this to variant.productName.
// But electron builder also sets the WM_CLASS of the window to variant.name.
// This difference will cause the app to launch with no icon and sometimes
// prevents app grouping in the taskbar.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an upstream issue? That sounds like a bug

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An issue was created (electron-userland/electron-builder#4974) but it doesn't look like it received any attention.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be worth including that link in the comment for future devs

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm.. looks like that issue also provides a different solution for this i.e the app-id is element-nightly but the desktop file is named element-desktop-nightly.desktop. If i rename the desktop file to element-nightly.desktop, the icon issue is fixed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be a bit odd to install element-desktop-nightly and then the desktop file is called something else

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the point it raises re Wayland is one that this PR does not solve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Taskbar Icons

2 participants