how to enable gui app in github codespaces?
Asked Answered
L

2

6

Some opencv code needs to show a GUI window when executing. Instead it shows Gtk-WARNING **: xxx: cannot open display:. It happened both on the web and in the desktop app. Is it possible to use something like x11 forwarding to enable this feature? Thanks.

Lightproof answered 19/6, 2022 at 12:32 Comment(0)
U
4

Goose's answer almost worked for me. I had to use gh cs ssh -- -XY.

Unbridled answered 4/11, 2022 at 20:9 Comment(0)
O
3

Use x11 forwarding.

On the codespaces, ssh X11 forwarding is enabled by default. Just make sure to install xauth package, then connect to codespaces use gh cs ssh -- -X.

Overturf answered 17/10, 2022 at 7:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.