Git Product home page Git Product logo

Comments (8)

Utopiah avatar Utopiah commented on August 15, 2024

Same error on Ubuntu 23.10

from android-studio-docker.

Utopiah avatar Utopiah commented on August 15, 2024

I tried xhost + or adding in $HOME/.bash_profile

JAVA_OPTIONS=-Djava.awt.headless=true
export JAVA_OPTIONS

but same result.

from android-studio-docker.

Deadolus avatar Deadolus commented on August 15, 2024

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?

from android-studio-docker.

Utopiah avatar Utopiah commented on August 15, 2024

That's what I thought which is why I shared

echo $DISPLAY
:0

isn't it matching?

from android-studio-docker.

Utopiah avatar Utopiah commented on August 15, 2024

Not sure if it makes a difference in that case but I run docker here as a user, not as root.

from android-studio-docker.

Deadolus avatar Deadolus commented on August 15, 2024

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.

from android-studio-docker.

Utopiah avatar Utopiah commented on August 15, 2024

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!

from android-studio-docker.

mihalycsaba avatar mihalycsaba commented on August 15, 2024

@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?

from android-studio-docker.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.