diff --git a/libs/backends/jack/jack_utils.cc b/libs/backends/jack/jack_utils.cc index bbdf4248f2..343a762cbb 100644 --- a/libs/backends/jack/jack_utils.cc +++ b/libs/backends/jack/jack_utils.cc @@ -34,6 +34,7 @@ #ifdef PLATFORM_WINDOWS #include // Needed for #include // 'IShellLink' +#include "pbd/windows_special_dirs.h" #endif #if (defined PLATFORM_WINDOWS && defined HAVE_PORTAUDIO) @@ -605,6 +606,11 @@ ARDOUR::get_jack_server_dir_paths (vector& server_dir_paths) if (pISL) pISL->Release(); +#else + std::string reg; + if (PBD::windows_query_registry ("Software\\JACK", "Location", reg)) { + sp.push_back (reg); + } #endif gchar *install_dir = g_win32_get_package_installation_directory_of_module (NULL);