Subject: bug#49504: Acknowledgement (Server support for Freedesktop.org startup notification)

From: Peter Oliver <[email-masked]>
Date: Sat, 10 Jul 2021 13:41:56 +0100 (BST)

In the meantime, here’s a patch which unadvertises startup notification support from emacsclient.desktop.

-- 
Peter Oliver

From a8567bf18abe95d1d39209496ca488c76523cde3 Mon Sep 17 00:00:00 2001
From: Peter Oliver <[email-masked]>
Date: Sat, 10 Jul 2021 12:10:08 +0100
Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20claim=20support=20for=20startup?=
 =?UTF-8?q?=20notification=20for=20emacsclient?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

GTK gives us free support for Freedesktop.org startup notification,
but only in the simple case that we are displaying a window for the
first time from a process that has been passed the appropriate
DESKTOP_STARTUP_ID environment variable by the launcher.  With
emacsclient, that’s often not the case.

* etc/emacsclient.desktop: Don’t advertise StartupNotify support.
---
 Makefile.in             | 1 -
 etc/emacsclient.desktop | 1 -
 2 files changed, 2 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 97d954b6ce..5c58e45717 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -738,7 +738,6 @@ install-etc:
 	client_name=`echo emacsclient | sed '$(TRANSFORM)'`${EXEEXT}; \
 	sed -e "/^Exec=emacsclient/ s|emacsclient|${bindir}/$${client_name}|" \
 	  -e "/^Icon=emacs/ s/emacs/${EMACS_NAME}/" \
-	  $(USE_STARTUP_NOTIFICATION_SED_CMD) \
 	  ${srcdir}/etc/emacsclient.desktop > $${tmp}; \
 	${INSTALL_DATA} $${tmp} "$(DESTDIR)${desktopdir}/$${client_name}.desktop"; \
 	rm -f $${tmp}
diff --git a/etc/emacsclient.desktop b/etc/emacsclient.desktop
index cd45463093..c3cacb9029 100644
--- a/etc/emacsclient.desktop
+++ b/etc/emacsclient.desktop
@@ -8,7 +8,6 @@ Icon=emacs
 Type=Application
 Terminal=false
 Categories=Development;TextEditor;
-StartupNotify=true
 StartupWMClass=Emacs
 Keywords=Text;Editor;
 Actions=new-window;new-instance;
-- 
2.31.1