mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
feat(desktop): bundled renderer, modules and instance accounts (#3254)
This commit is contained in:
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;
|
||||
}
|
||||
Reference in new issue
Block a user