[bugfix]: default go libsecret, support changing secret store (#493)

* [bugfix]: default go libsecret, support changing secret store

* update readme and rename libsecret
This commit is contained in:
Kendall Garner 2024-02-09 23:20:01 +00:00 committed by GitHub
parent 92478b5ca5
commit 0a658e3a22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 79 additions and 2 deletions

View file

@ -57,6 +57,12 @@ if (store.get('ignore_ssl')) {
app.commandLine.appendSwitch('ignore-certificate-errors');
}
// From https://github.com/tutao/tutanota/commit/92c6ed27625fcf367f0fbcc755d83d7ff8fde94b
if (isLinux() && !process.argv.some((a) => a.startsWith('--password-store='))) {
const paswordStore = store.get('password_store', 'gnome-libsecret') as string;
app.commandLine.appendSwitch('password-store', paswordStore);
}
let mainWindow: BrowserWindow | null = null;
let tray: Tray | null = null;
let exitFromTray = false;