Migration to Flatpak: migrate existing accounts on first launch
Hey Michael and all the other developers,
Thank you for maintaining Geary!
For the many users who have been using Geary for a while now and want to migrate to the new Flatpak version, it would make sense to update the FAQ and install guide(s) with the new locations of the config and data folders in ~/.var/app/org.gnome.Geary/
for the Flatpak version.
Despite the fact that I'm a reasonably experienced Linux user, it took me a while to understand why - apart from the Gmail accounts set up through Gnome Online Accounts - all my mail accounts had vanished after removing the Geary version from the Ubuntu repos and installing the Flatpak version.
It appears that the Flatpak variant of Geary 3.32 stores the account information in a different location, e.g. ~/.var/app/org.gnome.Geary/
. It doesn't look for existing accounts and data in the old locations ~/.local/share/geary
and ~/.config/geary
. After copying/moving the account_01
, account_02
, etc. folders over to the new locations or creating a symlink to the existing folders and rebooting, everything was back to normal.
It would make sense to have Geary check the old locations and migrate the accounts automagically on first launch or at least let the user know how to migrate the accounts manually.
Thanks again and cheers!