Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gtk-WARNING **: cannot open display #22

Open
TimJohnHowell opened this issue Sep 13, 2022 · 4 comments
Open

Gtk-WARNING **: cannot open display #22

TimJohnHowell opened this issue Sep 13, 2022 · 4 comments

Comments

@TimJohnHowell
Copy link

Can you share any advice on how to setup display permissions?

@radutomy
Copy link
Owner

radutomy commented Sep 14, 2022

Sorry, I'm not sure what you mean? The extension is designed for headless host/client communication.

@TimJohnHowell
Copy link
Author

Thank you Radutomy. I'm trying to force it to do something its not designed for. I did find a way to setup the DISPLAY environment variable on the Raspberry Pi in the .bashrc script so that VSRemoteDebugger will launch my code on the Pi and display the main window. I wondered if there was a better approach you were aware of.

@radutomy
Copy link
Owner

Sorry, I have no knowledge about that unfortunately.

@JinShil
Copy link
Contributor

JinShil commented Sep 15, 2022

@TimJohnHowell That error message is not a permission issue. It typically means you are running the application through SSH or some other terminal to which no X Windows display is attached. When running a GUI application that way, you can tell the system to show the display window on a local display by setting the DISPLAY variable with a command like export DISPLAY=":0.0" For the VSRemoteDebugger, you can set that in the "Visual Studio Debugger Path".

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants