Skip to content
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

Snap does not respect directory settings #92

Closed
ghost opened this issue Dec 23, 2017 · 7 comments
Closed

Snap does not respect directory settings #92

ghost opened this issue Dec 23, 2017 · 7 comments

Comments

@ghost
Copy link

ghost commented Dec 23, 2017

I'm using Ubuntu 17.10, with system locale set to slovak. Hence my home directory was created with directories using slovak names (Dokumenty, Hudba,...). With some applications (e.g. Spotify, Brave), running sudo snap install whatever will result (besides the expected install) in new directories created within my /home (in english).

This was reported here.

The same issue apparently happens if the home directory structure is modified with user-dirs.dirs (as reported in the link above).

@kenguru33
Copy link

I can confirm that this also happens on Debian stretch and Fedora 27

@meddario
Copy link

I can confirm the same in Ubuntu 18.04 with the latest updates.

For example:

sudo snap install gimp

start Gimp and check $HOME, the english-named directories are there.

@ghost
Copy link
Author

ghost commented Apr 13, 2018

It's a really important bug. Is Canonical really going to release an LTS distribution with such bug? It adds unwanted folders in your homedir as soon you run a new snap...

@kenvandine
Copy link
Member

The fix for this is being reviewed in PR #103

kenvandine added a commit to kenvandine/snapcraft-desktop-helpers that referenced this issue Apr 20, 2018
…le use them (ubuntu#103)

If the user-dirs.* exists in the $REALHOME and if the dirs are readable use them, fixes ubuntu#92 
* Fall back to creating the XDG symlinks if needed
* If the user has modified their user-dirs settings, force an update
* Detect if XDG user dirs include content that should be migrated
@meddario
Copy link

meddario commented May 1, 2018

Just a question: will this be released for 18.04? It's quite big for an LTS release, the user experience is really poor if you have any non-english locale.

@kenvandine
Copy link
Member

This is a remote part used at build time. The fix is released, and we've rebuilt all the snaps we maintain to take advantage of the fix. If there is a specific snap you'd like to see the fix in, I'd suggest filing a bug requesting a rebuild of the snap.

@meddario
Copy link

meddario commented May 1, 2018

All clear! Thanks!

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

No branches or pull requests

3 participants