-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Save the project data on the user settings folder by default, instead of user home folder #4
Comments
Tell me if I understood this correctly:
I'll investigate how to always detect the correct user path and how to write the config file in a more compatible manner. |
With a explicit config path, and you run VSCode as root, you will use the on the config path, so if you write to that file while with root powers, you cannot read it when you are normal user.
Yes. At least should be like this. If windows respected that I do not know. But seems that on Linux the correct way of doing it is running VSCode with gksudo, therefore gksudo will set the user folder to So, it does not seem a problem after all. I would suggest to close this, however as @t7yang mentioned, seems that putting the setting under the VSCode folder causes the Update I am not sure whether sync the settings is a good thing because the file paths on it are absolute, so they should differ from one computer to another. But may be an dedicated user can setup the same paths on both machines, which solves the absolute linking problem. |
One thing you can do is replace Btw, amazing work!!! So many good extensions by you. |
Currently VSCode can be launched as root/administrator, therefore all setting files written to the disk as this project setting files would be saved with root/administrator access. So when the user normally launches the VSCode he cannot read its settings saved on its home folder. This workflow is currently discussed on:
I think this should be the cause of the issue #1 (Path does not exist ). Somehow the VSCode could be opened as root/administrator and saved this extension settings on the user folder with root/administrator. Now he is on an instance non-root, and VSCode do not have access to its own files on the home folder.
If this package saved the setting on the VSCode settings folder, it would have worked correctly as long as he specified the
--user-data-dir
to the root folder. For example, I am going to open VSCode as root I must to set the data settings to another folder other the user folder, therefore the user files would not have its permission elevated to the root level.What is the difference between “gksudo nautilus” and “sudo nautilus”?
The text was updated successfully, but these errors were encountered: