Hi,
On 2026-03-30 18:24:27 +0200, Andreas Metzler wrote:
> is your actual breakage with a invalid $DISPLAY or with
> XDG_SESSION_TYPE=x11 and unset $DISPLAY?
I've tested with $XDG_SESSION_TYPE set to x11 and tty and with
$DISPLAY unset and set to an invalid value (":1").
With XDG_SESSION_TYPE=tty and $DISPLAY unset, I get a message
like
OK Pleased to meet you, process 1389711
as expected.
But in the 3 other cases, I get a "could not connect to display"
error from qt.qpa.xcb, then pinentry-qt aborts.
> I am wondering whether invalid $DISPLAY is something that really
> happens in no-exotic setups and needs to be handled.
Without a specific setup to fix the issue (in a limited way), this
can happen with GNU Screen (and tmux too, I suppose). Having to use
an environment variable with a fixed value instead of a dynamical
query was just a poor design.
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)