For whom does not care about multi users and backward compatibility, this is actually quite straightforward to change the snap directory from '$HOME/snap' to '$HOME/.snap'. Change the hard-coded path and the apparmor rule is fairly enough for release 2.46:
diff --git a/cmd/snap-confine/snap-confine.apparmor.in b/cmd/snap-confine/snap-confine.apparmor.in index 8b53423ca0..cde82139b5 100644 --- a/cmd/snap-confine/snap-confine.apparmor.in +++ b/cmd/snap-confine/snap-confine.apparmor.in @@ -343,7 +343,7 @@ # These should both have 'owner' match but due to LP: #1466234, we can't # yet @{HOME}/ r, - @{HOME}/snap/{,*/,*/*/} rw, + @{HOME}/.snap/{,*/,*/*/} rw, # Special case for *classic* snaps that are used by users with existing dirs # in /var/lib/. Like jenkins, postgresql, mysql, puppet, ... diff --git a/dirs/dirs.go b/dirs/dirs.go index 2986ef371a..ea37ad195e 100644 --- a/dirs/dirs.go +++ b/dirs/dirs.go @@ -133,7 +133,7 @@ const ( CoreSnapMountDir = "/snap" // Directory with snap data inside user's home - UserHomeSnapDir = "snap" + UserHomeSnapDir = ".snap" // LocalInstallBlobTempPrefix is used by local install code: // * in daemon to spool the snap file to <SnapBlobDir>/<LocalInstallBlobTempPrefix>* -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1575053 Title: Please move the "$HOME/snap" directory to a less obtrusive location To manage notifications about this bug go to: https://bugs.launchpad.net/snapd/+bug/1575053/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs