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