[Bug]: Native Wayland window class #2687
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#2687
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Preflight Checklist
YouTube Music (Application) Version
3.6.2-1
Checklists
What operating system are you using?
Other Linux
Operating System Version
Arch Linux
What CPU architecture are you using?
x64
Last Known Working YouTube Music (Application) version
No response
Reproduction steps
youtube-music --ozone-platform=wayland
Expected Behavior
It should have icon of Youtube Music
Actual Behavior
It has Wayland icon
Enabled plugins
Additional Information
The app's window class is "YouTube Music", but the desktop file, icon and binary are youtube-music. Because Wayland grabs an icon from a .desktop file with a name that matches the name of a window class, it tries to find .desktop file "YouTube Music", which by default is missing (at least in AUR version).
Possible solutions:
I think there are different but connected issues:
build.appId
but with underscores instead hyphens, presumably to correspond to reverse domain name notation that is preferred in Freedesktop standard and also used in Flatpak. There is no way to override generated icon filenamebuild.appId
which is defined with hyphensproductName
Because of that:
To solve these issues the application must have the same X11 and Wayland window classes, icon and desktop file name set to the same value in reverse domain name notation. Also
StartupWMClass
must be defined in desktop file for correct grouping and pinning in pure Wayland mode.Now it's even worse, icon in panel is also gone

Though that's an issue with packaging, so here I go to AUR