Load encrypted account credentials only after Electron reaches its ready state so Windows DPAPI is available during startup. Retry transient secure-storage discovery instead of caching an unavailable result for the process lifetime. Add hidden two-process DPAPI regression coverage for the real renderer IPC path and bump the public version to 2.1.40.
This commit is contained in:
@@ -128,7 +128,6 @@ let tray = null;
|
||||
let _cachedLogSettings = null;
|
||||
const configStore = new ConfigStore(app);
|
||||
configStore.setPerfLog((m) => { try { logInfo(m); } catch {} });
|
||||
_setLogSettingsSnapshot((configStore.load() || {}).globalSettings);
|
||||
const onlineBackupKeyring = createOnlineBackupKeyring({
|
||||
filePath: path.join(app.getPath('userData'), 'online-backup-keys.json')
|
||||
});
|
||||
@@ -1716,6 +1715,7 @@ app.whenReady().then(async () => {
|
||||
if (!_hasSingleInstanceLock) return;
|
||||
try {
|
||||
const _bootCfg = configStore.load();
|
||||
_setLogSettingsSnapshot(_bootCfg.globalSettings);
|
||||
setLogVerbose(!!(_bootCfg.globalSettings && _bootCfg.globalSettings.logVerbose));
|
||||
} catch {}
|
||||
logMarker('APP START', {
|
||||
|
||||
Reference in New Issue
Block a user