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
This commit is contained in:
Janosch Maier 2021-05-26 18:57:29 +02:00 committed by Ben Gotow
parent 72b7068cfc
commit 51d788c1a4

View file

@ -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,
};
}