Please move the "$HOME/snap" directory to a less obtrusive location
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Confirmed
|
High
|
Samuele Pedroni | ||
snapd (Arch Linux) |
New
|
Undecided
|
Unassigned | ||
snapd (Debian) |
New
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Snap package developers should be encouraged to store user data according to the XDG Base Directory Specification [1][2].
I installed the "notes" app via snap on a Xenial desktop:
sudo snap install notes
and launched it using the snap wrapper script "/snap/bin/notes". The script created a directory "$HOME/
- The XDG spec calls for user data to be stored under "$HOME/
- It clashes with the directory naming style on my desktop systems. All directories located directly under $HOME that are not prefixed with a dot are named using Capital Case -- e.g. "Desktop", "Documents", "Pictures" -- a scheme which is consistent with the defaults defined in "/etc/xdg/
Therefore snap packages should base the value of SNAP_USER_DATA on the value of XDG_DATA_HOME (or its specified default). For the "notes" snap, this would be "$HOME/
If however the XDG spec is considered irrelevant to snap packages, please consider using a proper UNIX-style dot-prefixed directory, "$HOME/.snap".
[1] http://
[2] https:/
Workaround
==========
If you don't want to see the snap folder, create a file named .hidden and in that file, type
snap
You may need to reload your file manager to see the change.
Changed in snapd (Ubuntu): | |
importance: | Undecided → Wishlist |
Changed in snapd (Ubuntu): | |
status: | Opinion → Confirmed |
Changed in snapd: | |
status: | Opinion → Confirmed |
no longer affects: | snappy |
tags: | added: julyshakedown |
Changed in snapd: | |
status: | Opinion → Confirmed |
Changed in snapd (Ubuntu): | |
status: | Opinion → Confirmed |
summary: |
- Please move snap user data from "$HOME/snap" to "$HOME/.snap" (or to - "$HOME/.local/share/snap" in accordance with the XDG spec) + Please move the "$HOME/snap" directory to a less obtrusive location |
no longer affects: | snappy |
description: | updated |
information type: | Public → Public Security |
information type: | Public Security → Private Security |
information type: | Private Security → Public |
information type: | Public → Public Security |
information type: | Public Security → Public |
Changed in snapd (Fedora): | |
status: | New → Invalid |
no longer affects: | snapd (Fedora) |
Changed in snapd: | |
importance: | Wishlist → High |
assignee: | nobody → Zygmunt Krynicki (zyga) |
Changed in snapd: | |
status: | Confirmed → Fix Released |
Changed in snapd (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in snapd: | |
status: | Fix Released → Confirmed |
Changed in snapd (Ubuntu): | |
status: | Fix Released → Confirmed |
information type: | Public → Public Security |
information type: | Public Security → Public |
Changed in snapd (Ubuntu): | |
assignee: | nobody → xfwangbjtu (xfwangbjtu) |
assignee: | xfwangbjtu (xfwangbjtu) → nobody |
Changed in snapd: | |
assignee: | Zygmunt Krynicki (zyga) → Samuele Pedroni (pedronis) |
Status changed to 'Confirmed' because the bug affects multiple users.