From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Oliver Newsgroups: gmane.emacs.bugs Subject: bug#49504: Server support for Freedesktop.org startup notification Date: Sat, 10 Jul 2021 12:43:39 +0100 (BST) Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811583-1906134314-1625917419=:3593" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36221"; mail-complaints-to="usenet@ciao.gmane.io" To: 49504@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 10 13:44:30 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 1m2BPJ-0009BC-NN for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Jul 2021 13:44:29 +0200 Original-Received: from localhost ([::1]:59226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2BPI-000758-64 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Jul 2021 07:44:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2BOs-00074l-JA for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2021 07:44:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2BOs-0001Hu-7C for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2021 07:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m2BOs-0000bn-5M for bug-gnu-emacs@gnu.org; Sat, 10 Jul 2021 07:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Peter Oliver Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Jul 2021 11:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49504 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16259174312311 (code B ref -1); Sat, 10 Jul 2021 11:44:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jul 2021 11:43:51 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) Original-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 Original-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 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-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:209739 Archived-At: 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--