Hi all,
I'd like to ask, is it possible to make an app run in single instance? i.e. when I run the app the second time, I'd somehow detect that there is already an instance running and do a different action than the regular startup..
Ideally I'd like to be able to pass some info to the current running instance.
The purpose of this is to enable users of my app to create global (system-wide) shortcuts for some action by using whatever shortcut mechanism / app they like (or their system supports) - they'd create a shortcut which'd run the app with a command-line parameter specifying the action, and the app, seeing that a running instance already exists, would dispatch an event in the already existing instance. I'm, as yet, quite the noob where it comes to node.js, so maybe the answer is obvious; sorry if that is the case. I'd appreciate any and all help.
NB. I'm on Win 7 and the latest package I downloaded seems to still be haunted by a bug which I believe has been already fixed - the background cannot be made transparent. I set the "alpha" property of the frame to true in app.js and applied the appropriate CSS, but the background stays black as night. I tried building AppJS from source and failed miserably, so I'm not sure if the fix should be already present in the version I use, or if it will be part of the next version. I'm running AppJS 0.0.20.
Thanks,
Dan