robb0wen / synthwave-vscode

Synthwave inspired colour theme for VS Code 🌅🕶
MIT License
5.14k stars 1.18k forks source link

ERROR: You may need to run VS code with admin privileges in order to enable Neon Dreams. #298

Open enriquemorenotent opened 9 months ago

enriquemorenotent commented 9 months ago

I have seen this error in other tickets, but it is marked as solved. In my case, this error persists.

image

OS: Ubuntu 22.40 VSCode: v1.82.2 Synthwave: v0.1.15

How to solve it, please?

wilrodriguez commented 9 months ago

If you haven't already sorted this out, you can avoid running vs code as a super user by chowning the program files as your user. For example, this does the job for me on mac sudo chown -R $(whoami) /Applications/Visual\ Studio\ Code.app/Contents, just replace with the correct one on your platform. I don't have a ubuntu vm configured right now, but I'm guessing your install binaries should be somewhere in /opt that's not too difficult to find. You could probably narrow the permissions down to particular files by digging around the enable/disable script, but the lazy solution works well enough for single user systems. I mean, I guess it would work fine for multi-user systems too if you wanted to chown using a shared group only.