Skip to content
Discussion options

You must be logged in to vote

@JamesHenry looks like clearing the ELECTRON_RUN_AS_NODE env var fixes it:

delete process.env.ELECTRON_RUN_AS_NODE

exec(`open -a "Actual.app"`)

Script Kit works on the same "forking processes" principle (each script is a forked process controlled by the main Kit.app) that @jlongster uses for forking a background process. Script Kit's fork call is inheriting that env var from Electron which then conflicts with launching an Electron app which forks another node process (PHEW 😅)

I think I can safely delete that env var from my fork call to avoid anything like this in the future. I'll run some tests.

Thanks for the help @jlongster

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@johnlindquist
Comment options

@jlongster
Comment options

Comment options

You must be logged in to vote
2 replies
@jlongster
Comment options

@JamesHenry
Comment options

Answer selected by johnlindquist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Errors
Labels
None yet
3 participants