johnlindquist / kit

Script Kit. Automate Anything.
https://scriptkit.com
MIT License
3.91k stars 138 forks source link

`// System: ` triggers stopped working in trusted kenv #1304

Closed Schmedu closed 1 year ago

Schmedu commented 1 year ago

Hey @johnlindquist, I just realized that since the new version, the System triggers (at least lock-screen and login, the others I did not check) stopped working in a kenv, they are only working in the main kenv.

johnlindquist commented 1 year ago

@Schmedu Can you check your ~/.kit/logs/kit.log for lines like this:

Good:

[2023-07-11 07:28:48.892] [info]  🖥  lock-screen will trigger /Users/johnlindquist/.kenv/kenvs/ai-generate/scripts/testing-lockscreen-script.ts

Bad:

[2023-07-11 07:31:30.414] [info]  Ignoring /Users/johnlindquist/.kenv/kenvs/ai-generate/scripts/testing-lockscreen-script.ts // System metadata because it's not in a trusted kenv.
[2023-07-11 07:31:30.414] [info]  Add "KIT_JOHNLINDQUIST_DANGEROUSLY_TRUST_KENVS=ai-generate" to your .env file to trust it.

It's working fine for me 🤔

Schmedu commented 1 year ago

Sorry for the late response @johnlindquist, yeah I think there was an issue that the kenv was not trusted. It's running again