fix(linux): Fix app icon not showing on Gnome+Wayland (#5258)#13581
fix(linux): Fix app icon not showing on Gnome+Wayland (#5258)#13581FabianLars merged 1 commit intotauri-apps:devfrom
Conversation
|
mmmh I cannot reproduce the fix on the official repo with the hello world example: cargo install --path . # from crates/tauri-bundler
cd ../..
cargo run --example helloworldWhat am I doing wrong? |
|
|
Package Changes Through d306effThere are 8 changes which include tauri-bundler with minor, tauri-cli with minor, tauri-codegen with minor, tauri-utils with minor, @tauri-apps/cli with minor, tauri with minor, @tauri-apps/api with minor, tauri-runtime-wry with patch Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
FabianLars
left a comment
There was a problem hiding this comment.
this has a very slim chance that its side effect is unwanted but in that case the dev can provide a custom template. anyway, thanks for the PR!
closes #5258
Spinned off a Fedora VM to test Museeks, and realized the icon would never show in dock, nor the installer. Modern Fedora uses Wayland. This also applied to Ubuntu. Forcing x11 shown the correct icon.
For whatever reasons, setting
StartupWMClassto the name of the app fixes it. See the discussion linked above. I don't know if this is just Gnome, or Freedesktop or whatever, but this fixes it.Before:
After:
Icon is still not showing on installer:

but is showing correctly in dock + grid view:
I tested that locally with a local template, I know, not perfect. If I can test it using the real tauri repo.