Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

HOME folder is wrong #36

Closed
jackTaw88 opened this issue Jan 7, 2019 · 2 comments
Closed

HOME folder is wrong #36

jackTaw88 opened this issue Jan 7, 2019 · 2 comments

Comments

@jackTaw88
Copy link

Vscode normally should use this directory as HOME:

/home/user_name/snap/vscode

But vscode (snap packaged version) use default user's home folder which is:

/home/user_name

Can you please fix this issue?

Thank you

@Kedstar99
Copy link

Kedstar99 commented Jan 26, 2019

Why is this an issue? This is by design.

Classic confinement is effectively un-confining the applications inside a snap. Applications which use classic confinement have the same full system access as traditionally packaged applications. Classic confinement is intended as a stop-gap measure to enable developers to publish applications which need more access than the current set of interfaces enable. Over time, as more interfaces are developed, snap publishers can migrate away from classic confinement to strict.

https://docs.snapcraft.io/snap-confinement/6233

VSCode and other IDEs including intellij need classic confinement to have unrestricted access to the system. I should be able to run any program, open any file or do anything I want.

This is by design.

My projects are in /home/<user_name>. The console in vscode should have full access to be able to run whatever I want unrestricted.

@jackTaw88
Copy link
Author

It is very good to have all config files of vscode in one directory (/home/user/snap/vscode/current).

I start vscode by a script which changes the HOME path as /home/user/snap/vscode.

I can develop many different project with it. There is no any access problem. The problem is:

vscode does not use the same directories with other runtime environments. for example:

in some cases ./npm directory will be use by platfrom:

  • Nodejs: /home/user/.npm
  • Vscode (snap): /home/user/snap/vscode/.npm

As I sad it would be great to have all config files inside /home/user/snap/vscode directory but that will effect other things...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants