GNU bug report logs -
#65509
[PATCH] Use correct env var when opening frames with freedesktop menu entries
Previous Next
Reported by: Davide Masserut <dm <at> mssdvd.com>
Date: Thu, 24 Aug 2023 18:45:01 UTC
Severity: normal
Tags: patch
Merged with 64310
Found in version 29.0.92
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Po Lu <luangruo <at> yahoo.com> writes:
> Davide Masserut <dm <at> mssdvd.com> writes:
>
>> Correct. However, that TTY is occupied by the X window manager,
>> which hides the Emacs interface.
>>
>> When the argument of --display doesn't exits or is empty, should we
>> check if $DISPLAY is present in the environment and use its value?
>>
>> When PGTK is enabled, we could check $WAYLAND_DISPLAY and then
>> $DISPLAY before resorting to displaying the frame in a terminal or in
>> a TTY.
>>
>> I tested this with Gnome and i3, both started from a TTY using
>> startx. I'm not sure how this behaves when using a display manager.
>
> Display selection is GTK's territory, and we basically give it carte
> blanche to judge which displays are suitable, since we can't account
> for every present and future GDK backend.
>
> Only subsequent to the establishment of the display connection are we
> capable of taking display-specific action, such as displaying a
> warning message.
It turns out that Emacs 29 has new CLI option that solves exactly these problems.
The attached patch replaces the usage of --display=$DISPLAY with --reuse-frame.
[0001-Avoid-using-display-to-reuse-frames.patch (text/x-patch, attachment)]
This bug report was last modified 1 year and 248 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.