From 51d788c1a434313e59b654704d98a7bc532e94c5 Mon Sep 17 00:00:00 2001 From: Janosch Maier Date: Wed, 26 May 2021 18:57:29 +0200 Subject: [PATCH] Ensure that mailspring is correctly started in the background on macos Currently, the --background flag of the plist autostart file on macos is ignored as it is treated as the filename of the command to start (which should be mailspring) and not as an argument. For more information see: https://apple.stackexchange.com/questions/110644/getting-launchd-to-read-program-arguments-correctly --- app/src/system-start-service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/system-start-service.ts b/app/src/system-start-service.ts index d0cdd9500..25057751f 100644 --- a/app/src/system-start-service.ts +++ b/app/src/system-start-service.ts @@ -86,8 +86,7 @@ class SystemStartServiceDarwin extends SystemStartServiceBase { _launchdPlist() { return { Label: 'com.mailspring.mailspring', - Program: this._launcherPath(), - ProgramArguments: ['--background'], + ProgramArguments: [this._launcherPath(), '--background'], RunAtLoad: true, }; }