Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: .desktop file name doesn't match WM Class name, causing missing app icon in Alt+Tab menu in Plasma (Wayland) #2806

Open
3 of 5 tasks
Damglador opened this issue Dec 30, 2024 · 6 comments
Labels
need more information Need more information about the issue

Comments

@Damglador
Copy link

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.7.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

  1. Enter Wayland session (Possibly Plasma in particular, bcs AUR maintainer said on GNOME it's fine)
  2. youtube-music --ozone-platform=wayland
  3. In alt+tab menu app will have a stock Wayland icon

Expected Behavior

App should have it's icon in alt+tab menu

Actual Behavior

It has Wayland icon

Enabled plugins

  1. Експоненційна гучність
  2. Компактна бічна панель
  3. Навігація
  4. Обхід вікових обмежень
  5. Ad blocker
  6. Discord integration

Additional Information

Continuation of #2687

@Damglador Damglador changed the title [Bug]: .desktop file name doesn't match WM Class name, causing missing app icon in Alt+Tab menu in Plasma [Bug]: .desktop file name doesn't match WM Class name, causing missing app icon in Alt+Tab menu in Plasma (Wayland) Dec 30, 2024
@JellyBrick
Copy link
Collaborator

I think it's an AUR issue.

@JellyBrick JellyBrick added the need more information Need more information about the issue label Jan 10, 2025
@Damglador
Copy link
Author

I think it's an AUR issue.

Yes. But when I asked there, the maintainer said that the official .deb package has the same thing.

@Damglador
Copy link
Author

I also checked youtube-music_3.7.1_arm64.deb from releases, just to be sure, and the .desktop file there indeed has a "wrong" name. The name in the .deb is youtube-music.desktop, so is in the AUR packages, but unless it matches the WMClass nane the icon will be missing, at least on KDE Plasma. The AUR maintainer said the icon is there for them on GNOME after only changing StartupWMClass.

@Damglador
Copy link
Author

Damglador commented Jan 10, 2025

I couldn't screenshot with alt+tab menu opened, so I had to make photos

With the default youtube-music.desktop
Wayland icon on in the alt tab menu

After renaming it to com.github.th_ch.youtube_music.desktop
Proper icon

@h-banii
Copy link
Contributor

h-banii commented Jan 11, 2025

The .desktop file included in the AppImage is also named youtube-music.desktop, so I think it's something to do with electron-builder.


I've tested both GNOME and Plasma in a NixOS VM and it seems that:

no change change .desktop file name to match the WM Class
GNOME all icons seems to be right icon in MPRIS widget is wrong
Plasma icon in the task bar is right, but it's wrong in the alt+tab menu and window decoration all icons seems to be right

(I got the same results on both wayland and x11)

@Sigmanor
Copy link

Same here (arch-x86_64, xfce, x11)

Image

Either with AUR or with AppImage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more information Need more information about the issue
Projects
None yet
Development

No branches or pull requests

4 participants