bigbearlabs / contexter-issues

0 stars 0 forks source link

Apps launched after AX observation 'resurrects' after quit. #79

Closed sohocoke closed 6 years ago

sohocoke commented 7 years ago

To reproduce: launch Contexter, launch Chrome Canary, quit Chrome. Expected: Chrome should quit. Observed: Chrome quits, then restarts.

Also happens with Slack. (=> Chromium issue?) Doesn't seem to happen every single time, but for me it's been most times.

Workaround: launch chrome first, then Contexter.

sohocoke commented 7 years ago

Turns out to be an issue with the JXA script and the script runner. when they are run when the app is not launched (which can happen due to the retrying mechanism) the invocation of the app's scripting API will launch the app.

Need to add conditions on certain entry points to the script runner interface so a script doesn't end up running in situation where it doesn't make sense to run.

sohocoke commented 6 years ago

Fixed