knurling / ServiceStation

Service Station
37 stars 1 forks source link

Bug: Add Script option no longer functions #21

Closed gingerbeardman closed 4 years ago

gingerbeardman commented 4 years ago

I had previously added a script to the context menu. But I can no longer add a script.

  1. Click + icon in Menu Item column
  2. Click Add Script option

Expected

Actual

Version 2020.3 (14)

No messages in console

gingerbeardman commented 4 years ago

Workaround: https://github.com/knurling/ServiceStation/issues/20#issuecomment-617885177

pkamb commented 4 years ago

In version 2020.4 I'm now restarting the background process every time the main app is launched:

SMLoginItemSetEnabled(attendantBundleID, false) // added in 2020.4
SMLoginItemSetEnabled(attendantBundleID, true)

This should kill the previous version of the attendant, if it's already running, and re-launch the newest version from the updated app bundle. This should happen quickly in the background and be entirely invisible to the user.

Please let me know if you continue to see any non-functioning buttons or communication to the attendant. Or if there are any issues due to the attendant restarting more frequently.