diff --git a/src/pipewire-jack.c b/src/pipewire-jack.c index 39ce104dc..6c47a3fb2 100644 --- a/src/pipewire-jack.c +++ b/src/pipewire-jack.c @@ -1626,6 +1626,9 @@ jack_client_t * jack_client_open (const char *client_name, const char *str; int i; + if (getenv("PIPEWIRE_NOJACK") != NULL) + goto disabled; + pw_log_debug("client open %s %d", client_name, options); client = calloc(1, sizeof(struct client)); @@ -1751,6 +1754,10 @@ jack_client_t * jack_client_open (const char *client_name, exit: pw_thread_loop_unlock(client->context.loop); return NULL; + disabled: + if (status) + *status = JackFailure | JackServerFailed; + return NULL; } jack_client_t * jack_client_new (const char *client_name)