Closed XVanilor closed 1 year ago
Hello
Thank you for the feedback
The wrapper already uses a fallback to ":0" if the environment variable is not present. (See the last line of execution in the section "Execution logs in debug mode") but this is only applicable inside the container, we don't change the host environment configuration. The wrapper tries to call xhost but indeed if the host is not correctly configured it will cause problems.
The problem being rather on the side of the host (/ DISPLAY service) I don't see what to add on the wrapper side...
Maybe add a warning message if the xhost commands fail ? Or maybe add this use case in the documentation for troubleshooting ? What do you think @ShutdownRepo ?
Agreed, this is a host issue.
However, we could probably raise a warning message at wrapper level if we feel like the DISPLAY
env is messed up and user didn't use --disable-X11
Initially, I wrote this bug report to provide troubleshooting to anyone which might encounter it, as Exegol does not indicate what could have gone wrong. It would be great to raise a message to indicate what's missing (DISPLAY
environment variable on the host) instead of the default error message of xhost
Agreed, we'll make the necessary changes to the wrapper Thank you for raising the suggestion
Describe the bug
Hello,
[Situation]
I discovered a tiny bug with Exegol while trying to launch a GUI app. As it might rely on xhost, if the
DISPLAY
environment variable is not set on the host's machine, Exegol command will crash withxhost: unable to open display ""
I'm using Ubuntu 20.04.5 LTS, Linux kernel 5.13.0-51 and Gnome Desktop
[Tries]
Before all of those command, I installed xorg and openbox using
apt install xorg openbox
I tried several fixes found on Internet in order to get the correct DISPLAY variable. However, those failed:
host +si:localuser:host
xhost +si:localuser:host
export DISPLAY="localhost:0.0"
export DISPLAY="localmachine:0.0"
export DISPLAY=:1.0
[Fix]
The one that worked for me was
export DISPLAY=:0
. Writing this at the end of your~/.profile
file will ensure that the fix is permanent. Commands which involves GUI in Exegol now worksSteps To Reproduce
unset DISPLAY
to reproduceexegol start
(regular or sudo user). You should seexhost: unable to open display ""
in starting logsfirefox
)xhost: unable to open display ""
Exegol Wrapper Version
Host OS
Linux
Configuration of the concerned container
No response
Execution logs in debug mode
Exception
No response
Anything else?
No response