Using the package emacs-wayland on Arch with latest KDE Plasma, I would like to pin Emacs since its my main editor but after pinning the icon, on the next restart it makes a new icon and the pinned one seems like a stopped app.
As far as I can tell I have everything vanilla. Emacs is started with a symlink of the desktop file in ~/.config/autostart/ The desktop file is unmodified. I don’t have this problem with any other app and there is just one Emacs process running all the time. Any ideas?
[Desktop Entry]
Name=Emacs
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=emacs %F
Icon=emacs
Type=Application
Terminal=false
Categories=Development;TextEditor;
StartupNotify=true
StartupWMClass=Emacs