Skip to content

Commit

Permalink
Dynamic server name via MOD_DESKTOP_SERVER_NAME
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Mar 14, 2024
1 parent 0595788 commit a1e043c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/utils_jack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,10 @@ bool init_jack(void)

#ifdef _MOD_DESKTOP
const jack_options_t options = static_cast<jack_options_t>(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<jack_options_t>(JackNoStartServer|JackUseExactName);
jack_client_t* const client = jack_client_open("mod-ui", options, nullptr);
Expand Down

0 comments on commit a1e043c

Please sign in to comment.