feat(desktop): bundled renderer, modules and instance accounts (#3254)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-07 16:48:07 +02:00
1 parent c748c8af4e
commit 7c5fa2180a
1275 files changed
+215074 -81246

No files matched your search

@@ -0,0 +1,20 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {getDesktopWindowBehaviorSettings} from '@electron/common/DesktopConfig';
import {app} from 'electron';
export const AUTOSTART_LAUNCH_ARG = '--autostart';
function isAutostartLaunch(): boolean {
if (process.argv.includes(AUTOSTART_LAUNCH_ARG)) {
return true;
}
if (process.platform === 'darwin') {
return Boolean(app.getLoginItemSettings().wasOpenedAtLogin);
}
return false;
}
export function isStartMinimizedLaunch(): boolean {
return isAutostartLaunch() && getDesktopWindowBehaviorSettings().startMinimized;
}