unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#49504: Server support for Freedesktop.org startup notification
@ 2021-07-10 11:43 Peter Oliver
  2021-07-10 12:37 ` Eli Zaretskii
       [not found] ` <handler.49504.B.16259174312311.ack@debbugs.gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Oliver @ 2021-07-10 11:43 UTC (permalink / raw)
  To: 49504

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-10 14:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-10 11:43 bug#49504: Server support for Freedesktop.org startup notification Peter Oliver
2021-07-10 12:37 ` Eli Zaretskii
2021-07-10 12:56   ` Peter Oliver
2021-07-10 14:30     ` Eli Zaretskii
     [not found] ` <handler.49504.B.16259174312311.ack@debbugs.gnu.org>
2021-07-10 12:41   ` bug#49504: Acknowledgement (Server support for Freedesktop.org startup notification) Peter Oliver

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).