GNU bug report logs -
#37847
[PATCH] Improve client/daemon xdg/systemd experience
Previous Next
Reported by: Carlos Pita <carlosjosepita <at> gmail.com>
Date: Mon, 21 Oct 2019 07:17:02 UTC
Severity: wishlist
Tags: fixed
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
In the systemd service, I believe that Carlos was setting $0 to emacsd for the following effect:
$ xprop -name emacsd@$HOST | grep WM_CLASS
WM_CLASS(STRING) = "emacsd", "Emacsd"
This is because desktops use the StartupWMClass in the .desktop file to match which windows are associated with which .desktop file, and we want a daemonised Emacs to be matched to emacsclient.desktop rather than emacs.desktop.
Consequently, now that this section of the patch has been reverted, the following line remaining in emacsclient.desktop makes no sense:
StartupWMClass=Emacsd
Perhaps we can find a different way of setting the WM_CLASS X11 property?
Alternatively, if we merge the two .desktop files, this issue goes away. There is currently some discussion of doing this for other reasons on emacs-devel.
I’ve unarchived bug 37847 in order to add this comment, and hope that that isn’t a breach of etiquette. I’ll happily raise a new bug if that’s preferred.
--
Peter Oliver
This bug report was last modified 4 years and 48 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.