nwg-piotr / nwg-panel

GTK3-based panel for sway and Hyprland Wayland compositors
MIT License
630 stars 43 forks source link

[BUG] `signal-desktop`'s icon doesn't show in the taskbar #140

Closed alfdupont closed 2 years ago

alfdupont commented 2 years ago

Describe the bug Regardless of the chosen icon theme (Adwaita, Beautyline, Papirus), when signal-desktop is open, its button in the taskbar is present but has no icon

To Reproduce Steps to reproduce the behavior:

  1. Launch signal-desktop
  2. See that despite the window being open, the button in the taskbar has no icon on it

Expected behavior As for other applications, I expected to see the icon, since it is present in the relevant /usr/share/icons directory

Screenshots image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

nwg-piotr commented 2 years ago

This is actually a bug, not in the panel, but in Signal packaging: ambiguous names. The desktop file should be called signal.desktop, not signal-desktop.desktop, since the window_class value is "Signal".

You may work it around on your side:

  1. Copy /usr/share/applications/signal-desktop.desktop to ~/.local/share/applications/ and rename it to signal.desktop.
  2. To avoid duplicate icon in launchers, copy /usr/share/applications/signal-desktop.desktop to ~/.local/share/applications/ again, edit the destination file and add NoDisplay=true at the bottom.