Переглянути джерело

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 роки тому
батько
коміт
ea814ca331
1 змінених файлів з 1 додано та 1 видалено
  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());