Here to confirm what @skylite21 mentioned, the supposed fix does not work.
Adding the --password-store="gnome-libsecret"
parameter doesn’t do anything for me.
I made sure to also change the Flatpak desktop files under:
USERNAME@pop-os:~$ locate com.getmailspring.Mailspring | grep .desktop
Which gave me the following results:
-
/home/USERNAME/.local/share/flatpak/app/com.getmailspring.Mailspring/x86_64/stable/e4e099bd840a9cacc61cc0bf49ee6df1035e78b091e3941274091ccee06cdd0a/export/share/applications/com.getmailspring.Mailspring.desktop
-
/home/USERNAME/.local/share/flatpak/app/com.getmailspring.Mailspring/x86_64/stable/e4e099bd840a9cacc61cc0bf49ee6df1035e78b091e3941274091ccee06cdd0a/files/share/applications/com.getmailspring.Mailspring.desktop
-
/home/USERNAME/.local/share/flatpak/exports/share/applications/com.getmailspring.Mailspring.desktop
But sadly, it does not seem to fix it. I checked under the “Passwords and Keys” app to make sure that Mailspring actually writes an entry into the keystore, and it does.
All other apps can read and write to/from the keystore so this is an issue specific to Mailspring.
To fix this, I did the following:
- list all Flatpak versions of the Mailspring app available:
flatpak remote-info --log flathub com.getmailspring.Mailspring
- Pick the version you want to downgrade to, in my case the following commit (v. 1.10.7):
flatpak update --commit=1efcb0434736d5248718166ed235b551bc6b513d14163b61950abf8213a5a894 com.getmailspring.Mailspring
- Clean up the old Flatpak files (make sure Mailspring is closed!)
cd ~/.var/app/
rm -rf com.getmailspring.Mailspring/
- Start Mailspring and the wizard should now come up. Connect your accounts.
Warning:
I found that connecting my Gmail accounts takes ages after I login. You have to wait at least 5 minutes after authorizing Mailspring before it actually adds your accounts. Just leave your browser window open until the Mailspring window closes and your account is added.
Also, I found that I had to add my Gmail accounts twice. After adding them, I immediately got an error that it couldn’t connect. If I then reconnect and authorize again, the accounts work.
Maybe this is something specific to version 1.10.7.
EDIT:
Forgot to add, if you want to prevent Flatpak from updating the package, you can do so by doing this:
- List all the Flatpak apps
flatpak list
- Copy the name of the Flatpak ID, in this case
com.getmailspring.Mailspring
- If you’re on PopOS like me, Flatpak is set up in user mode. Masking the package needs to be done like this:
flatpak mask --user com.getmailspring.Mailspring
Other distro’s sometimes don’t have to use --user, but instead just the App ID.
- You can list all masked packages with:
(sudo) flatpak mask
Depending on your distro, you might have to use sudo
and --user
to successfully mask the Flatpak package. I found in the past that the Pop!_Shop
, which is a GUI frontend for the APT
and Flatpak
package managers, would sometimes continue to try and update masked packages. That is why I mention using --user
and sudo
here to prevent more unnecessary head scratching and troubleshooting.
- The final step, test if flatpak wants to update the package by running:
flatpak update
Mailspring, alongside all other masked apps, should no longer show up in this list and are now excluded from being updated.