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

WM_CLASS incorrect - causing application icon to be missing under Ubuntu 24 #457

Open
user-8472 opened this issue Aug 22, 2024 · 2 comments · May be fixed by #477
Open

WM_CLASS incorrect - causing application icon to be missing under Ubuntu 24 #457

user-8472 opened this issue Aug 22, 2024 · 2 comments · May be fixed by #477
Labels
bug Something isn't working

Comments

@user-8472
Copy link

Issue
Application icon shows up incorrectly in the Ubuntu Dock at install time for version 5.4.5 installed from latest .deb package when running under Ubuntu (24.04)

To Reproduce

  1. Download package: Android-Messages-v5.4.5-linux-amd64.deb.
  2. sudo dpkg -i ./Android-Messages-v5.4.5-linux-amd64.deb
  3. Run 'Android Messages' from application launcher or execute from command line AndroidMessages --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --no-sandbox <username>
  4. Default icon for applications without an icon shown in Dock

Expected behavior
Should show the Android Messages icon

Workaround
Modify the applications .desktop file to look for the icon under the correct window manager class.

Inspect the running application using the xprop utility to show the WM_CLASS attribute.

$ xprop WM_CLASS
WM_CLASS(STRING) = "android-messages-desktop", "android-messages-desktop"

Update the StartupWMClass entry in /usr/share/applications/AndroidMessages.desktop
sudo vim /usr/share/applications/AndroidMessages.desktop

Modify the WMClass to match the output from the xprop command
StartupWMClass=android-messages-desktop

Screenshot from 2024-08-22 10-01-26

Application icon should refresh automatically after saving the file with the new changes.

Screenshots
Icon appearance after initial installation
Screenshot from 2024-08-22 09-56-37
Icon appearance after modifying StartupWMClass in AndroidMessages.desktop
Screenshot from 2024-08-22 09-56-56

Desktop

  • OS: Ubuntu
  • OS Version: 22.04.4
  • Application Version: 5.4.5
@user-8472 user-8472 added the bug Something isn't working label Aug 22, 2024
@OrangeDrangon
Copy link
Owner

OrangeDrangon commented Aug 23, 2024 via email

mhoffmeyerDC added a commit to mhoffmeyerDC/android-messages-desktop that referenced this issue Nov 27, 2024
@mhoffmeyerDC mhoffmeyerDC linked a pull request Nov 27, 2024 that will close this issue
@mhoffmeyerDC
Copy link

I've been having an issue with the icon not showing up in the task switcher that was also caused by the WM_CLASS mismatch. This PR fixes that. Tested with npm run package and verified the changes in the resulting deb archive's desktop file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants