Open Utopiah opened 6 months ago
Same error on Ubuntu 23.10
I tried xhost +
or adding in $HOME/.bash_profile
JAVA_OPTIONS=-Djava.awt.headless=true
export JAVA_OPTIONS
but same result.
The error tells you that you can't connect to the display server. Usually, the server listens on :0, but this could also be some other variable. What does your shell (not inside docker!) DISPLAY environment variable say?
That's what I thought which is why I shared
echo $DISPLAY
:0
isn't it matching?
Not sure if it makes a difference in that case but I run docker here as a user, not as root.
Not sure if it makes a difference in that case but I run docker here as a user, not as root.
That should not make a difference. Make sure you are running x11, not wayland mabe? Maybe some problem with your .xauthority file not allowing access to the x11 server? Sorry can't help here, I am also no display server expert.
Seems so :
fabien@fabien-CORSAIR-ONE-i160:~$ echo $XDG_SESSION_TYPE
x11
No worries I'll investigate https://stackoverflow.com/questions/44429394/x11-forwarding-of-a-gui-app-running-in-docker and report here!
@Utopiah I assume you use wayland try running this in the terminal 'xhost + local:' works on gnome
@Deadolus maybe this can be added in the run.sh for wayland?
with in
compose.yml
having