alexmurray / emacs-snap

GNU Emacs in a snap
https://snapcraft.io/emacs
72 stars 12 forks source link

gnome-shell fails to choose correct application icon when running pgtk build under wayland #79

Open alexmurray opened 8 months ago

alexmurray commented 8 months ago

The generic icon is shown with a title of "emacs-wayland"

image

GNOME Shell looking glass also shows this as the WMClass:

image

Yet the environment variable seems set correctly in the running instance:

(getenv "DESKTOP_STARTUP_ID")
gnome-shell/Emacs/9961-2-graphene_TIME8078906

Which I assume matches against the desktop file in the snap:

grep WMClass /var/lib/snapd/desktop/applications/emacs_emacs.desktop
StartupWMClass=Emacs