However, 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.
Fortunately, we could always leverage crond
* * * * * rmdir ~/snap
to remove the directory when it is empty though. ;-)
For someone who is still struggling with this, /forum. snapcraft. io/t/experiment al-flag- for-hiding- snap/28509
https:/
may prevent snap from storing data in ~/snap folder.
However, it seems that hidden- snap-folder= true
sudo snap set system experimental.
works and puts data in ~/.snap/data, but snap still creates an empty ~/snap on app startups.
Fortunately, we could always leverage crond
* * * * * rmdir ~/snap
to remove the directory when it is empty though. ;-)