Browse Source

HelperLaunchd: fix "KeepAlive" entry

Must be without the minus sign, according to:

https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html

Fixes #380.
Vincent Lang 8 years ago
parent
commit
ea814ca331
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/HelperLaunchd.cpp

+ 1 - 1
src/utils/HelperLaunchd.cpp

@@ -80,7 +80,7 @@ bool HelperLaunchd::writePlist()
 
   QVariantMap keepAlive;
   keepAlive.insert("SuccessfulExit", false);
-  launchPlist.insert("Keep-Alive", keepAlive);
+  launchPlist.insert("KeepAlive", keepAlive);
 
   launchPlist.insert("ProcessType", "Background");
   launchPlist.insert("Program", HelperLauncher::HelperPath());