On Sun, 19 Jan 2025 at 00:14:17 +0100, Bill Allombert wrote:
I run wine in text mode in a CI cronjob (so XDG_RUNTIME_DIR is not defined).
Since I upgraded wine, it reports a spurious error message:
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
even though I set WINEDEBUG=-all

I believe this message comes from libwayland-client, and cannot easily be suppressed by a caller.
(https://codesearch.debian.net/search?q=XDG_RUNTIME_DIR+is+invalid+or+not+set+in+the+environment&literal=1)

Some Wayland clients avoid this error message by only attempting to connect to a Wayland display if there is some sort of evidence that there ought to be a functioning Wayland session. For example, SDL only tries to use Wayland if $WAYLAND_DISPLAY is set, or if $XDG_SESSION_TYPE is set to "wayland". Wine could maybe do similarly.

(Or, your cron job could create a temporary XDG_RUNTIME_DIR for the duration of running Wine things.)

    smcv

Reply via email to