I have few apps pinned to my task manager and one of them - emacs - is causing me problems when I start it for the first time after turning on the computer. Instead of being grouped into one icon, when I start it for the first time, it is shown in two separate icons like this:
In order to fix it I need to unpin the first icon, pin the second one and then I have only one icon - that is until I restart my computer and again have double emacs icons.
Any ideas how to force emacs to stay in the one pinned icon on my task manager? Thank you.
My first thought is that this is a side effect of there being two different emacs programs within the emacs package. However, I am unable to reproduce this on my machine, so there must be some other factor involved. In fact, both versions are considered to be the same by my taskbar.
Also the error doesn’t happen all the time instantly when I start emacs. Sometimes it happens few hours after starting emacs and I think sometimes there are some lucky days where it stays whole day (or most of it) where it should :). Maybe it’s plasma bug? Or maybe emacs server executable switches by itself to emacsclient executable and plasma thinks it’s different program…
Not sure if it’s connected but I also noticed (but this one is rare) strange behavior with discord app, that is pinned too (but on different KDE activity). Sometimes discord icon (without starting discord at all) replaces slack icon in my current KDE activity (even though it’s not pinned in this activity at all). But then it’s enough for me to switch to my second activity (where discord is pinned) and go back to the first one and slack icon is again properly displayed (instead of discord).
If anybody has any ideas what could be worth checking let me know. Thank you.