From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49504: Server support for Freedesktop.org startup notification Date: Sat, 10 Jul 2021 15:37:55 +0300 Message-ID: <83zguubazg.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40350"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49504@debbugs.gnu.org To: Peter Oliver Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 10 14:39:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m2CGE-000AJq-K3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Jul 2021 14:39:10 +0200 Original-Received: from localhost ([::1]:42678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2CGC-0006uL-W9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Jul 2021 08:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2CG6-0006uB-Ic for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2021 08:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2CG6-0007w2-BI for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2021 08:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m2CG6-0001vs-7f for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2021 08:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Jul 2021 12:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49504 X-GNU-PR-Package: emacs Original-Received: via spool by 49504-submit@debbugs.gnu.org id=B49504.16259206967374 (code B ref 49504); Sat, 10 Jul 2021 12:39:02 +0000 Original-Received: (at 49504) by debbugs.gnu.org; 10 Jul 2021 12:38:16 +0000 Original-Received: from localhost ([127.0.0.1]:60247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2CFL-0001us-VS for submit@debbugs.gnu.org; Sat, 10 Jul 2021 08:38:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2CFK-0001uf-Tk for 49504@debbugs.gnu.org; Sat, 10 Jul 2021 08:38:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60668) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2CFF-0007YQ-B5; Sat, 10 Jul 2021 08:38:09 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1671 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2CFE-0003YV-Uy; Sat, 10 Jul 2021 08:38:09 -0400 In-Reply-To: (message from Peter Oliver on Sat, 10 Jul 2021 12:43:39 +0100 (BST)) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209740 Archived-At: > Date: Sat, 10 Jul 2021 12:43:39 +0100 (BST) > From: Peter Oliver > > For a desktop environment, it¢s helpful to know which execs caused which windows to be opened. One way of doing this is with the Freedesktop.org startup notification protocol, https://specifications.freedesktop.org/startup-notification-spec/startup-notification-latest.txt. > > We currently partially support this protocol in GTK builds, because GTK handles it for us automatically. However, GTK can only automatically handle the simple case where emacs is launched and displays a window itself. > > To support emacsclient, where the execed process is not necessarily an ancestor of the process displaying the window, as I understand it we¢d need to do the following: You want to make the Emacs frame displayed due to an emacsclient request show emacsclient as its "exec"? But then what happens if the user uses that frame for displaying other windows and buffers, which have nothing to do with the original emacsclient request?