From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 10 07:43:51 2021 Received: (at submit) by debbugs.gnu.org; 10 Jul 2021 11:43:51 +0000 Received: from localhost ([127.0.0.1]:60233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2BOg-0000bD-Sm for submit@debbugs.gnu.org; Sat, 10 Jul 2021 07:43:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:46720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2BOf-0000b6-BW for submit@debbugs.gnu.org; Sat, 10 Jul 2021 07:43:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2BOf-00072u-3b for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2021 07:43:49 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:44649) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2BOc-000173-Ef for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2021 07:43:48 -0400 Received: by mail-wr1-x429.google.com with SMTP id f9so10483322wrq.11 for ; Sat, 10 Jul 2021 04:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; h=date:from:to:subject:message-id:mime-version; bh=CqdNIlMtADki3IfNVj1YERtiRx/6fJAaY66y+8ReGqY=; b=o299tm0wLSJpwfQ15qVVeG9DbaNU12Y6nntCW1Uv/dpcEMW8o2yZK9GsNb3JJm4NzZ GblXBHXxdlTTZ+CUoGRL0P9HMBM4UX/WUjZXiDdSDIBu5QiUA2KiqxKQhK0/5LMu3NBv HqalaY/5dKb+8giwfoUKzGAE+ZVPfh54B0fZ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version; bh=CqdNIlMtADki3IfNVj1YERtiRx/6fJAaY66y+8ReGqY=; b=Cs5S4RTOtR3K09B2YvQER6cVLr5U/OBL7YsCiaJE5xn0HBlg44bHK4lHodiXKz/pV9 NuEeJmv8viyLaJcNV00EiaWuVjbs90PlMnB5pgueg9pe//+SsYnsBjjnHEy039asRAtC fWGh1iEkScr7HIBZb/a1OmV6MoQGjicTGJCKEk4fn5aXRXtGIqWBv2JYDmkesH8RR5X4 jJOqpNv8RXQBJ0J0tHlp1kqy42vl/SNEfqrzxGq3pwA30gEw8XwzTFnAplnjmhjx2sDz i+nQN6VT/+mV6r/X0gksR+8keILEIWzAMigxi8DJpzheKQNqiYIJ5BTNLxJJIwxFg86R /52w== X-Gm-Message-State: AOAM531kQMB91mZuiGPAW/NED7H7urdDlzTQFve1etcXvgzGmoeVU/HO v0LsEIzPqzCl6iQy5BF2Rz0R7mzOygLXJA== X-Google-Smtp-Source: ABdhPJzfQri25FGukRhB3YLQFVuHa4uHiowaYOJbouL+4HaqqqAk2OJHG7gILsNxI8t8qrbrcKTRRw== X-Received: by 2002:a5d:5271:: with SMTP id l17mr23154163wrc.239.1625917421480; Sat, 10 Jul 2021 04:43:41 -0700 (PDT) Received: from froglet.home.mavit.org.uk (cpc118948-dudl14-2-0-cust32.16-1.cable.virginm.net. [82.37.201.33]) by smtp.gmail.com with ESMTPSA id n2sm8311491wrx.40.2021.07.10.04.43.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 04:43:40 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.16.1/8.15.2) with ESMTPS id 16ABhdpD021450 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Sat, 10 Jul 2021 12:43:39 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.16.1/8.16.1/Submit) with ESMTP id 16ABhdw7021447 for ; Sat, 10 Jul 2021 12:43:39 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Sat, 10 Jul 2021 12:43:39 +0100 (BST) From: Peter Oliver To: bug-gnu-emacs@gnu.org Subject: Server support for Freedesktop.org startup notification Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811583-1906134314-1625917419=:3593" Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=p.d.oliver@mavit.org.uk; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811583-1906134314-1625917419=:3593 Content-Type: text/plain; format=flowed; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT 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: - Pass the value of the DESKTOP_STARTUP_ID environment variable from emacsclient to emacs. - When opening a new frame at the request of emacsclient, call C function gtk_window_set_startup_id with the value from DESKTOP_STARTUP_ID. -- Peter Oliver ---1463811583-1906134314-1625917419=:3593-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 10 08:38:16 2021 Received: (at 49504) by debbugs.gnu.org; 10 Jul 2021 12:38:16 +0000 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 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 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 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 Date: Sat, 10 Jul 2021 15:37:55 +0300 Message-Id: <83zguubazg.fsf@gnu.org> From: Eli Zaretskii To: Peter Oliver In-Reply-To: (message from Peter Oliver on Sat, 10 Jul 2021 12:43:39 +0100 (BST)) Subject: Re: bug#49504: Server support for Freedesktop.org startup notification References: MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49504 Cc: 49504@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 10 08:42:07 2021 Received: (at 49504) by debbugs.gnu.org; 10 Jul 2021 12:42:07 +0000 Received: from localhost ([127.0.0.1]:60251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2CJ5-00020e-Gx for submit@debbugs.gnu.org; Sat, 10 Jul 2021 08:42:07 -0400 Received: from mail-wm1-f53.google.com ([209.85.128.53]:38764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2CJ3-000209-UA for 49504@debbugs.gnu.org; Sat, 10 Jul 2021 08:42:06 -0400 Received: by mail-wm1-f53.google.com with SMTP id b14-20020a1c1b0e0000b02901fc3a62af78so10780772wmb.3 for <49504@debbugs.gnu.org>; Sat, 10 Jul 2021 05:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; h=date:from:to:subject:in-reply-to:message-id:references:mime-version; bh=vCnPBSqIkthtBo6Rzyv30ZC0aGlUuXmH7O/sJWXDLM0=; b=CZo/DCgG9x1XpyILbqpKOWgELbnyS3OYr/DrUb70je1SNjzO/KzwG6Sv41H1q0Hg0h H9P6bphqjpNkkcl+i0X2x+Go8L818p4HJgMnCE7L6Z7M2ytsZLDYlVR/+Pr3Y3FO0mZN Wgl+LEhxrtiTwcEZiKUYbDnsEk/cJCGlAqCGA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:in-reply-to:message-id :references:mime-version; bh=vCnPBSqIkthtBo6Rzyv30ZC0aGlUuXmH7O/sJWXDLM0=; b=TyiXkkD5T5TcsgEyxh1bXP8WcwQyEIVASkmSp57X9XpbnU/mPQnZmBjD8UWST8k7Yd Woh6TTyndKBz9X3RoN4ShelJRYaF1kK2mgAA0ssZ47LQDz75rKpapFz8ULeFCUT2TEcR yABcpoKhZe1iz3N2dNW7cbnR/N0IIgNfLrWF/V4xWx9apXtTEfpxCRCbFmXDDYXEojyI RAUQvTHr4fXxCKG3Ii50/m+xHZTlJdVa04oMiipsj9vI2AWIUlrkyQt+vnCNB8N9EqBi kn5MDSOUOxsPrDBWmonHE1VN5SNpcWr6aDOkEU209z1vRAontxRu8rTFjz8o2BWbllHB Cccg== X-Gm-Message-State: AOAM530pOfhNgPVzN5X91rvTAXZCWXMAo95lkEX7feJvZm1Clqn0SjjR p+nPEn6WoT6iEZbFxP54sM7qJZy5NWjncA== X-Google-Smtp-Source: ABdhPJzOOvXjnhq5ndHqeTvQOH8Po7UYVxECKhyOyzTXMoppFFXxEnAPED5u1Mimvt2lSUwbURh6eQ== X-Received: by 2002:a7b:ce05:: with SMTP id m5mr4418258wmc.64.1625920919638; Sat, 10 Jul 2021 05:41:59 -0700 (PDT) Received: from froglet.home.mavit.org.uk (cpc118948-dudl14-2-0-cust32.16-1.cable.virginm.net. [82.37.201.33]) by smtp.gmail.com with ESMTPSA id l34sm17353933wms.45.2021.07.10.05.41.58 for <49504@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 05:41:58 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.16.1/8.15.2) with ESMTPS id 16ACfv7f024902 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for <49504@debbugs.gnu.org>; Sat, 10 Jul 2021 13:41:57 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.16.1/8.16.1/Submit) with ESMTP id 16ACfuOs024898 for <49504@debbugs.gnu.org>; Sat, 10 Jul 2021 13:41:57 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Sat, 10 Jul 2021 13:41:56 +0100 (BST) From: Peter Oliver To: 49504@debbugs.gnu.org Subject: Re: bug#49504: Acknowledgement (Server support for Freedesktop.org startup notification) In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811583-1268956135-1625920917=:3593" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49504 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811583-1268956135-1625920917=:3593 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT In the meantime, here’s a patch which unadvertises startup notification support from emacsclient.desktop. -- Peter Oliver ---1463811583-1268956135-1625920917=:3593 Content-Type: text/plain; charset=UTF-8; name=0001-Don-t-claim-support-for-startup-notification-for-ema.patch Content-Transfer-Encoding: BASE64 Content-ID: <2b8d147-549a-f37e-f1bd-9e448d8643d0@froglet.home.mavit.org.uk> Content-Description: Content-Disposition: attachment; filename=0001-Don-t-claim-support-for-startup-notification-for-ema.patch RnJvbSBhODU2N2JmMThhYmU5NWQxZDM5Mj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zZQ0KIENh dGVnb3JpZXM9RGV2ZWxvcG1lbnQ7VGV4dEVkaXRvcjsNCi1TdGFydHVwTm90 aWZ5PXRydWUNCiBTdGFydHVwV01DbGFzcz1FbWFjcw0KIEtleXdvcmRzPVRl eHQ7RWRpdG9yOw0KIEFjdGlvbnM9bmV3LXdpbmRvdztuZXctaW5zdGFuY2U7 DQotLSANCjIuMzEuMQ0KDQo= ---1463811583-1268956135-1625920917=:3593-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 10 08:56:22 2021 Received: (at 49504) by debbugs.gnu.org; 10 Jul 2021 12:56:22 +0000 Received: from localhost ([127.0.0.1]:60255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2CWr-0002Jy-Ts for submit@debbugs.gnu.org; Sat, 10 Jul 2021 08:56:22 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:34544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2CWp-0002Jm-TZ for 49504@debbugs.gnu.org; Sat, 10 Jul 2021 08:56:20 -0400 Received: by mail-wr1-f50.google.com with SMTP id p8so16401076wrr.1 for <49504@debbugs.gnu.org>; Sat, 10 Jul 2021 05:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=ejd7pQI57uBZ5MQm+QQeasptOh7blw/0kV/97MzEXDo=; b=GnQVqYJnAScX5MLzWXx3NEEkW6EwhKFO0x+ctoH+WR63NbvOhou9Xne3R/0MRFFLcb oD2yQMDjNJMBqOJkbi4hBDZkebLxBYtt7mjGpFX7lwgGMRgmDLi6Aydk4fMRHoniP7s6 VFuvCxh8q4Q61RNnZzQrLN0ZLfnO4/EPsBNqE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=ejd7pQI57uBZ5MQm+QQeasptOh7blw/0kV/97MzEXDo=; b=G3BJK/tEKDyXx0t8ab2MvNE5vIVsNg8FAc9kH/bPdvH85Q47/CuARSwhlJZFqXAvV8 vmGJlXMCZ+ouuxGfZRDreB3Q3/LcxlO7KPNeWTMZBFqDgyXRO364a9w6VzpwyFsGTPKQ aV98UxqNaczHIfSlExHyDR4VYszOQsceEyyY5oTXrov45JHRw9KTTScy5X8nRzuX+xRG 6AXQJYCrSW7wqzzAXebrWgBmZhj5wnn46wrgYG8FSCGX2/zj5+7llMd6cPvZlmxBcfDh tuSMCO3p0Jyb8XoetdDURSojS5NC3C2rnKGxISXytp4eqFXInogGPVUypuzwUbtIJOBO ARcw== X-Gm-Message-State: AOAM53312c8Qbll7tEsp6lbmM6B0dOE85uan8SOozuu6V/bvClOAs+lR +H/e8pmkdkQ6npHnlVnIdkJKOw== X-Google-Smtp-Source: ABdhPJw4gbrYvQ3l4rE6GvJmyZr8JKKxo9yMrNckuKoEkWg/XuZh8QXpIgskrNs+B+g7AaSlcOHC2Q== X-Received: by 2002:a5d:54cd:: with SMTP id x13mr15972033wrv.197.1625921774029; Sat, 10 Jul 2021 05:56:14 -0700 (PDT) Received: from froglet.home.mavit.org.uk (cpc118948-dudl14-2-0-cust32.16-1.cable.virginm.net. [82.37.201.33]) by smtp.gmail.com with ESMTPSA id p3sm14797332wmq.17.2021.07.10.05.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 05:56:13 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.16.1/8.15.2) with ESMTPS id 16ACuCV4025865 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 10 Jul 2021 13:56:12 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.16.1/8.16.1/Submit) with ESMTP id 16ACuBsj025862; Sat, 10 Jul 2021 13:56:11 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Sat, 10 Jul 2021 13:56:11 +0100 (BST) From: Peter Oliver To: Eli Zaretskii Subject: Re: bug#49504: Server support for Freedesktop.org startup notification In-Reply-To: <83zguubazg.fsf@gnu.org> Message-ID: References: <83zguubazg.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811583-1930806053-1625921772=:3593" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 49504 Cc: 49504@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811583-1930806053-1625921772=:3593 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Sat, 10 Jul 2021, Eli Zaretskii wrote: > 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? Here’s an example of a feature enabled by the startup notification protocol. When a user clicks on an icon for an application in a desktop’s launcher, the launcher will provide feedback to the user that something is happening, perhaps by changing the pointer to the “busy” indicator. That feedback will be cleared once the application displays a window. For the launcher to know when to clear the feedback, it needs to know that a particular window is associated with a particular application launch. So, in the case you describe, where the user goes on to display other buffers, nothing happens, and that’s fine. -- Peter Oliver ---1463811583-1930806053-1625921772=:3593-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 10 10:30:46 2021 Received: (at 49504) by debbugs.gnu.org; 10 Jul 2021 14:30:46 +0000 Received: from localhost ([127.0.0.1]:33215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2E0E-0004ri-7x for submit@debbugs.gnu.org; Sat, 10 Jul 2021 10:30:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2E0C-0004r4-JS for 49504@debbugs.gnu.org; Sat, 10 Jul 2021 10:30:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34308) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2E07-00055C-42; Sat, 10 Jul 2021 10:30:39 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4534 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 1m2E02-0006G8-34; Sat, 10 Jul 2021 10:30:38 -0400 Date: Sat, 10 Jul 2021 17:30:21 +0300 Message-Id: <83y2aeb5s2.fsf@gnu.org> From: Eli Zaretskii To: Peter Oliver In-Reply-To: (message from Peter Oliver on Sat, 10 Jul 2021 13:56:11 +0100 (BST)) Subject: Re: bug#49504: Server support for Freedesktop.org startup notification References: <83zguubazg.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49504 Cc: 49504@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 10 Jul 2021 13:56:11 +0100 (BST) > From: Peter Oliver > cc: 49504@debbugs.gnu.org > > > 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? > > Here’s an example of a feature enabled by the startup notification protocol. > > When a user clicks on an icon for an application in a desktop’s launcher, the launcher will provide feedback to the user that something is happening, perhaps by changing the pointer to the “busy” indicator. That feedback will be cleared once the application displays a window. For the launcher to know when to clear the feedback, it needs to know that a particular window is associated with a particular application launch. > > So, in the case you describe, where the user goes on to display other buffers, nothing happens, and that’s fine. But that was only an example, right? I asked a more general question. Emacs is different from many, if not most, applications in this regard. For example, it can start any number of windows from the same "launch". I'm asking whether we are going to use desktop features that don't really fit Emacs.