vscode opens a white screen when running in super-user mode

Viewed 25

I've installed vscode on my ubuntu and I'm trying to run it with root privileges. I understand there is a problem with this version and root privileges. I use this command from my terminal:

sudo code /my_fils --user-data-dir='.' --no-sandbox

but when running it vscode opens a blank and white screen with super-user definition on top but with nothing else. I know there was a problem with this configuration and I found this issue in this link : https://code.visualstudio.com/updates/v1_59#_progress-for-electron-sandbox-support

I've tried the following but the outcome is the same:

sudo chown root /chrome-sandbox sudo chmod 4755 /chrome-sandbox

running vscode without the root privilege works.

I'm using ubuntu 20.04 and my vscode version is 1.70.2

is there a workaround for it?

thanks !!

0 Answers
Related