tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.
https://tuta.com
GNU General Public License v3.0
6.13k stars 528 forks source link

Allow basic_text for safeStorage backend #7917

Closed paw-hub closed 2 weeks ago

paw-hub commented 2 weeks ago

On some systems, a backend may not be detected correctly. In a lot of cases, this can occur if the user is not using one of a hardcoded list of desktop environments (you can see this list in xdg_util.cc as well as key_storage_util_linux.cc in GetDesktopEnvironment and SelectBackend respectively in Chromium's source code), and it determines this using environment variables.

Basically, if Chromium is unable to detect your desktop environment this way, safeStorage will not be available in any way except basic_text.

We don't really have any control over this outside of the preselectGnomeLibsecret() method which may or may not work, but users can override it with CLI args or just set an app password.

As such, this commit allows basic_text to be used as a backend.

Closes #7257