VS-Code won't starte because of missing /dev/fd/3

Viewed 1444

I'm using vs-code installed via snap on openSUSE Leap 15.2 Until rebooting my machine today everything was fine. Now, when I try to start it, I get the following error:

No protocol specified
[7065:1118/173715.565235:ERROR:browser_main_loop.cc(1473)] Unable to open X display.
The futex facility returned an unexpected error code.
/dev/fd/3: No such file or directory
Server response:

I tried rebooting, reinstalling it, and deleting the ~/.config/Code folder, with no success. Currently I have version 1.51.1 installed.

Edit: I'm not root and I'm locally on a machine with GUI (KDE). Trying to start code as root gives the same error. Other graphical applications are working fine (like the browser I'm writing this from)

1 Answers

Try to set the environment variable called DISPLAY:

export DISPLAY=:0.0

or

export DISPLAY=:1.0

This worked for me

Related