Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to set 'KeepAlive' on mac #63

Open
Ajeey opened this issue Oct 15, 2017 · 1 comment
Open

Option to set 'KeepAlive' on mac #63

Ajeey opened this issue Oct 15, 2017 · 1 comment

Comments

@Ajeey
Copy link

Ajeey commented Oct 15, 2017

  • The target platform(s) the problem occurs on (Linux, Mac, Mac App Store, and or Windows): Mac
  • Node version (run node -v): 6.10.0
  • auto-launch version: 5.0.1
  • The options you're passing to auto-launch:
  • Are you using NW.js or Electron - Electron main process
    • If so, which version?
    • If you're using Electron, are you using auto-launch from the main process or a renderer process?
  • Can you reproduce this with a simple Hello World example app?
  • If needs be, would you be able to provide us with a simple app (as simple as possible) which reproduces the problem? Yes

I notice that the plist is created with the <key>RunAtLoad</key> whose value is true.
Is there any option to set <key>KeepAlive</key> to true also?

something like this -

          mac: {
            useLaunchAgent:true,
            keepAlive: true
          }
@adam-lynch
Copy link
Contributor

There isn't any such option right now. We'd be open to adding it though, could you open a pull-request? 😄. Maybe it would be better to add an option like:

mac: {
  useLaunchAgent: true,
  plist: {
    keepAlive: true
    otherSetting: false
    // ...
  }
}

(this could even overwrite our default ones, if you specify runAtLoad: false for example)

What do you think?

P.S. I don't know if any of those additional options are available when not using a launch agent. Do you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants