[Jack-Devel] How to tell if server running from API

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Jack-Devel] How to tell if server running from API

Tim-2
This may have been answered recently but I can't find it.
Is there a way, via the Jack API or Jack server API,
  to ask if Jack is already running?

I see there is a DBus command for that in jack_control,
  but jack_control crashes for me. Maybe my Python's fault?

Thanks.
Tim.
_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Reply | Threaded
Open this post in threaded view
|

Re: How to tell if server running from API

Robin Gareus
On 3/31/19 3:01 AM, Tim wrote:
> This may have been answered recently but I can't find it.
> Is there a way, via the Jack API or Jack server API,
>  to ask if Jack is already running?

jack_wait(1) is a jack-client to check and wait for existence/exit of
jackd. It periodically tries to jack_client_open() with
JackNoStartServer. It usually comes with jackd.

> I see there is a DBus command for that in jack_control,

yep. `jack_control status`

which effectively does the same as

dbus-send --session --print-reply --dest=org.jackaudio.service
/org/jackaudio/Controller org.jackaudio.JackControl.IsStarted

>  but jack_control crashes for me. Maybe my Python's fault?

no idea.

Cheers!
robin

_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org