Applications lose user/application data after they are updated - it behaves like a new installation.
Encountered with Chromium, Intellij Idea, Remmina, maybe more.
Chromium loses all user settings, I have to log into it again to have my bookmarks, history etc. Remmina - the beginning dialogues show up again, all saved RDP connections lost and I have to set it all up again. Idea - no info about recently open projects, JetBrains account, installed plugins and all other user settings etc.
I don’t know if this is a bug in snap as a whole or only in those apps, but it would be weird if all those apps had the same bug.
this will happen if the user’s home is not accessible at the time of the refresh.
This is documented as not supported in the Limitations in snapd topic, precisely because of this behaviour.
Edit to add: in particular, it’s highly unlikely the data has been deleted, but it’s probably inaccessible to the current revision of the application. As a workaround, with the user’s home accessible, try snap revert chromium, followed by a snap refresh chromium. This will only work if the revision of the application that has the data is still installed (see snap list --all chromium for example, as well as du -sh ~/snap/chromium/[0-9]*)
Unusual home dir setup - I encrypted my home dir using this guide - http://tlbdk.github.io/ubuntu/2018/10/22/fscrypt.html - since new versions of ubuntu-based distros do not offer encryption during installation. The folder is decrypted on login.
snap version
snap 2.42.5
snapd 2.42.5
series 16
neon 18.04
kernel 5.0.0-37-generic
Operating System: KDE neon 5.17 User Edition
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.2
Kernel Version: 5.0.0-37-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 15,2 GiB
Also shouldn’t home folder encryption be supported?
I use my linux for work and my company requires us to have the home folder encrypted for security reasons. I imagine many other companies do too, it’s a pretty reasonable requirement.
And with snap becoming very integrated into ubuntu, where the software centre often installs snaps instead of normal packages, it should be working properly.
I’m not sure why you went with that fscrypt thing instead of using full-disk encryption as supported by the distribution, but that was your choice I’m afraid.
Everytime I install Ubuntu it only gives me the option to encrypt disk if I erase Windows. If I choose to install alongside other OSes then it won’t let me use FDE. This is what drove me to fscrypt to begin with.