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.
how to enable gui app in github codespaces?
Asked Answered
Goose's answer almost worked for me. I had to use gh cs ssh -- -XY
.
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
.
© 2022 - 2024 — McMap. All rights reserved.