diff --git a/utils/utils_jack.cpp b/utils/utils_jack.cpp index 62de8b56..e5bf2cd9 100644 --- a/utils/utils_jack.cpp +++ b/utils/utils_jack.cpp @@ -201,7 +201,10 @@ bool init_jack(void) #ifdef _MOD_DESKTOP const jack_options_t options = static_cast(JackNoStartServer|JackUseExactName|JackServerName); - jack_client_t* const client = jack_client_open("mod-ui", options, nullptr, "mod-desktop"); + const char* servername = std::getenv("MOD_DESKTOP_SERVER_NAME"); + if (servername == nullptr) + servername = "mod-desktop"; + jack_client_t* const client = jack_client_open("mod-ui", options, nullptr, servername); #else const jack_options_t options = static_cast(JackNoStartServer|JackUseExactName); jack_client_t* const client = jack_client_open("mod-ui", options, nullptr);