[Bug 1575053] Re: Please move the "$HOME/snap" directory to a less obtrusive location

2022-04-10 Thread Kevin Dong
For someone who is still struggling with this,
https://forum.snapcraft.io/t/experimental-flag-for-hiding-snap/28509 may help.

It seems that
sudo snap set system experimental.hidden-snap-folder=true
works and puts data in ~/.snap/data, but snap still creates an empty ~/snap on 
app startups.

-- 
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

[Bug 1575053] Re: Please move the "$HOME/snap" directory to a less obtrusive location

2020-08-27 Thread Kevin Dong
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
@@ -346 +346 @@
-@{HOME}/snap/{,*/,*/*/} rw,
+@{HOME}/.snap/{,*/,*/*/} rw,
diff --git a/dirs/dirs.go b/dirs/dirs.go
index 2986ef371a..ea37ad195e 100644
--- a/dirs/dirs.go
+++ b/dirs/dirs.go
@@ -136 +136 @@ const (
-   UserHomeSnapDir = "snap"
+   UserHomeSnapDir = ".snap"

-- 
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

[Bug 1575053] Re: Please move the "$HOME/snap" directory to a less obtrusive location

2020-08-27 Thread Kevin Dong
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
index 2986ef371a..ea37ad195e 100644
--- a/dirs/dirs.go
+++ b/dirs/dirs.go
@@ -136 +136 @@ const (
- UserHomeSnapDir = "snap"
+ UserHomeSnapDir = ".snap"
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
@@ -346 +346 @@
- @{HOME}/snap/{,*/,*/*/} rw,
+ @{HOME}/.snap/{,*/,*/*/} rw,

-- 
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

[Bug 1575053] Re: Please move the "$HOME/snap" directory to a less obtrusive location

2020-08-27 Thread Kevin Dong
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 
/*

-- 
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