I regularly use text notes files on my computer. Therefore I created a
mynotes.desktop file launcher that uses emacs editor to open those files.
[Desktop Entry] Type=Application Name=MyNotes Comment=Note taking editor Exec=/usr/bin/env XLIB_SKIP_ARGB_VISUALS=1 /usr/bin/emacs /home/pink/notes/misc.txt Icon=mynotes Terminal=false Categories=Utility StartupWMClass=mynotes
I locked the launcher on the dock. On the the dock there is also an emacs launcher for any other kind of emacs editing.
However, when I click on
mynotes launcher, the opened emacs session gets pinned under the emacs icon.
As you see I set
mynotes.desktop, but no way. it gets associated with the emacs.