-
-
Notifications
You must be signed in to change notification settings - Fork 40
Do not open more than one instance of google music electron #19
Comments
Also, it would be neat if you could pass an "action" should as play, plause, next and prev. In that case the window should not be shown, but the action should be performed (silently). |
We decide to allow multiple instances to make our life as developers easier (e.g. listen to music in one instance, reboot/dev in another). Considering this a |
With respect to actions, those integrations can be done via something like MPRIS. Here's a CLI tool that makes calls out to MPRIS and should work: |
I think MPRIS only works on Linux? |
With respect to MPRIS, I think you are right about it being Linux only. I have a feeling there are Windows equivalents though. Worst case scenario, I would opt for an HTTP API over CLI integration (since the latter would likely need an API inevitably). With respect to multiple instances, we will have to research if that's possible. I know |
It looks like this should be possible via a module named |
To give an ETA on this, I will try implementing this by the end of next weekend (unless someone beats me to the punch). |
Taking a look at building this now. Going to make single instance the default with a CLI flag/config override to enable multiple instances. |
This has been implemented in |
This is really neat. Thank you!!! On Sat, Oct 24, 2015 at 6:50 AM, Todd Wolfson notifications@github.com
|
Executing google music electron when it is already running should not open a new instance. Instead it should just show (unhide and bring to the front) the existing instance.
The text was updated successfully, but these errors were encountered: