Open
Description
Objective
We need to figure out a way for scuttle shell to know that another instance is running and thus prevent launching multiple copies.
Why
In the near future, multiple apps might want to start scuttle shell to provide sbot features for them. We need this to prevent race conditions between multiple apps trying to launch the same systray application.
Desired outcome
If scuttle shell is running and another app tries to launch it again, it simply quits without error and informs the app that the application was already running.
Notice for add-on usage
The host_app.js
native app will need to be changed to accommodate this. Right now it tries to start its own scuttle shell and has no way of attaching itself to an already running sbot.