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'. Changing the hard-coded path and the AppArmor rule is fairly enough for release 2.46:
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'. Changing the hard-coded path and the AppArmor rule is fairly enough for release 2.46:
diff --git a/dirs/dirs.go b/dirs/dirs.go .ea37ad195e 100644 confine/ snap-confine. apparmor. in b/cmd/snap- confine/ snap-confine. apparmor. in .cde82139b5 100644 confine/ snap-confine. apparmor. in confine/ snap-confine. apparmor. in /snap/{ ,*/,*/* /} rw, /.snap/ {,*/,*/ */} rw,
index 2986ef371a.
--- a/dirs/dirs.go
+++ b/dirs/dirs.go
@@ -136 +136 @@ const (
- UserHomeSnapDir = "snap"
+ UserHomeSnapDir = ".snap"
diff --git a/cmd/snap-
index 8b53423ca0.
--- a/cmd/snap-
+++ b/cmd/snap-
@@ -346 +346 @@
- @{HOME}
+ @{HOME}