A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
desktop: fix start minimized on autostartup (#8492)
01zulfid75e2e85c9ea
diff --git a/apps/desktop/src/utils/autolaunch.ts b/apps/desktop/src/utils/autolaunch.tsindex 7786f738a..4f0b57b6e 100644--- a/apps/desktop/src/utils/autolaunch.ts+++ b/apps/desktop/src/utils/autolaunch.ts@@ -39,7 +39,7 @@ const LINUX_AUTOSTART_DIRECTORY_PATH = path.join("autostart");-const STARTUP_ARGS = ["--hidden"];+const HIDDEN_ARG = "--hidden";export class AutoLaunch {static enable(hidden: boolean) {@@ -54,13 +54,13 @@ export class AutoLaunch {);} else {const loginItemSettings = app.getLoginItemSettings({- args: STARTUP_ARGS+ args: hidden ? [HIDDEN_ARG] : undefined});if (loginItemSettings.openAtLogin) return;app.setLoginItemSettings({openAtLogin: true,openAsHidden: hidden,- args: STARTUP_ARGS+ args: hidden ? [HIDDEN_ARG] : undefined});}}