Subject: bug#49259: StartupWMClass=Emacsd makes no sense on its own

From: Peter Oliver <[email-masked]>
Date: Mon, 28 Jun 2021 17:11:25 +0100 (BST)

File etc/emacsclient.desktop contains the following line:

StartupWMClass=Emacsd

This depended on an associated setting in etc/emacs.service, but that setting was removed because it caused problems for things that rely on invocation-name.  See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37847#54 for more details.

Attached is a patch to set StartupWMClass back to Emacs.

-- 
Peter Oliver

From d6c8cbb6b3fea5643e8979ba1281520ce3c53f29 Mon Sep 17 00:00:00 2001
From: Peter Oliver <[email-masked]>
Date: Mon, 28 Jun 2021 17:04:32 +0100
Subject: [PATCH] Revert more of a partially reverted patch

* etc/emacsclient.desktop: Undo setting of StartupWMClass=Emacsd, since
this relies on a change to etc/emacs.service which was also undone.  See
bug#37847 for more explanation.
---
 etc/emacsclient.desktop | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/emacsclient.desktop b/etc/emacsclient.desktop
index 2c1edb4b66..f76fb2f5d9 100644
--- a/etc/emacsclient.desktop
+++ b/etc/emacsclient.desktop
@@ -9,5 +9,5 @@ Type=Application
 Terminal=false
 Categories=Development;TextEditor;
 StartupNotify=true
-StartupWMClass=Emacsd
+StartupWMClass=Emacs
 Keywords=Text;Editor;
-- 
2.31.1