Score:1

Can't run VSCode as superuser

fo flag

I am trying to run VSCode as a superuser in Ubuntu 18.04, It's solely in a lab environment to allow me to work with Ansible. Every time I load VSCode as superuser I get a white screen and nothing else, but when loaded via the "code" it works fine.

enter image description here

I could really do with it loading with superuser privileges to allow me to do my Ansible labs.

Score:0
fk flag

I think you should try running without --user-data-dir argument because maybe you have some misconfiguration there.

I had a similar problem but with gray screen some time ago and I've just deleted .vscode folder

simon clarke avatar
fo flag
Hi Ivan, Thanks for taking the time to message back but unfortunately sudo code --no-sandbox =/root/ didn't work
Ivan avatar
fk flag
@simonclarke Have you tried to reinstall Code?
simon clarke avatar
fo flag
Yes Ivan tried that but unfortunately that didn't work either
Ivan avatar
fk flag
@simonclarke I recommend running `sudo apt update` and then `sudo apt-get dist-upgrade` because maybe your problem is caused by old underlying software
simon clarke avatar
fo flag
Thanks again Ivan for taking the time to reply. I have tried that and it didn't work unfortunately still getting the white screen
Ivan avatar
fk flag
@simonclarke I think you should update your system. You can do this by running `sudo do-release-upgrade`
Score:0
gl flag

Unfortunately, rolling back to version 1.65 seems to be the only viable solution.

The reason for the problem is an update: running VSCode as "sudo" was broken in newer releases, and the VSCode developers closed this issue as "wontfix": https://github.com/microsoft/vscode/issues/146445

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.