Subject: bug#65509: [PATCH] Use correct env var when opening frames with freedesktop menu entries

From: Po Lu <[email-masked]>
Date: Thu, 31 Aug 2023 19:32:38 +0800

Eli Zaretskii <[email-masked]> writes:

>> Date: Thu, 24 Aug 2023 20:32:47 +0200
>> From:  Davide Masserut via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <[email-masked]>
>> 
>> When Emacs is built with PGTK, frames opened with the 
>> emacsclient.desktop entry are opened as X11 windows instead of 
>> Wayland.
>> 
>> This patch adds a sed command to the Makefile that replaces the 
>> environment variable "$DISPLAY" with "$WAYLAND_DISPLAY" when built 
>> with PGTK.
>
> Po Lu, any comments on this?

I think this is the fix for the bug I couldn't reproduce earlier,
bug#64310.  The patch seems appropriate, thanks.