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

App icon not shown on GNOME under Wayland #6868

Closed
2 tasks done
haileys opened this issue Apr 27, 2024 · 3 comments
Closed
2 tasks done

App icon not shown on GNOME under Wayland #6868

haileys opened this issue Apr 27, 2024 · 3 comments

Comments

@haileys
Copy link

haileys commented Apr 27, 2024

Using a supported version?

  • I have searched searched open and closed issues for duplicates.
  • I am using Signal-Desktop as provided by the Signal team, not a 3rd-party package.

Overall summary

Instead the generic icon is shown:

image

This is because Signal does not set an app ID when running under Wayland (screenshot from GNOME's built-in Looking Glass tool):

image

Steps to reproduce

  1. run Signal under Wayland with --ozone-platform=wayland
  2. observe generic application icon in GNOME app switcher

Expected result

  1. Signal icon is used as application icon in GNOME app switcher

Actual result

  1. Generic 'unknown' icon is used as application icon in GNOME app switcher

Screenshots

No response

Signal version

7.60

Operating system

Arch Linux, GNOME 46, Mutter 46

Version of Signal on your phone

No response

Link to debug log

No response

@haileys
Copy link
Author

haileys commented Apr 27, 2024

This is not a duplicate of #6122

StartupWMClass is set to Signal as the linked issue suggests as a workaround, and the generic app icon is still used.

$ grep StartupWMClass /usr/share/applications/signal-desktop.desktop
StartupWMClass=Signal

@yochaigal
Copy link

yochaigal commented Apr 30, 2024

I can confirm that I have this issue in Wayland/GNOME as well (Ubuntu 24.04).
Changing the wmclass to signal (lowercase) resolved the issue for me.

I set my local .desktop file to:

[Desktop Entry]
Name=Signal
Exec=/opt/Signal/signal-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations --no-sandbox %U
Terminal=false
Type=Application
Icon=signal-desktop
StartupWMClass=signal
Comment=Private messaging from your desktop
MimeType=x-scheme-handler/sgnl;x-scheme-handler/signalcaptcha;
Categories=Network;InstantMessaging;Chat;

@haileys
Copy link
Author

haileys commented Apr 30, 2024

@yochaigal That does indeed fix it for me. Running signal-deskop with WAYLAND_DEBUG=1 shows:

[2279573.109]  -> xdg_surface@39.get_toplevel(new id xdg_toplevel@40)
[2279573.114]  -> xdg_toplevel@40.set_app_id("signal")
[2279573.118]  -> xdg_toplevel@40.set_title("Signal")

I'll send a patch upstream to the Arch Linux package changing StartupWMClass

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

No branches or pull requests

2 participants