Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/global_store/src/global_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ bool xstudio::global_store::load_preferences(
// folders
char *plugin_path = std::getenv("XSTUDIO_PLUGIN_PATH");
if (plugin_path) {
for (const auto &p : xstudio::utility::split(plugin_path, ':')) {
#ifdef _WIN32
char path_env_var_sep = ';';
#else
char path_env_var_sep = ':';
#endif
for (const auto &p : xstudio::utility::split(plugin_path, path_env_var_sep)) {
if (fs::is_directory(p + "/preferences"))
preference_load_defaults(prefs, p + "/preferences");
}
Expand Down
7 changes: 6 additions & 1 deletion src/plugin_manager/src/plugin_manager_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ PluginManagerActor::PluginManagerActor(caf::actor_config &cfg) : caf::event_base
// xstudio plugins
char *plugin_path = std::getenv("XSTUDIO_PLUGIN_PATH");
if (plugin_path) {
for (const auto &p : xstudio::utility::split(plugin_path, ':')) {
#ifdef _WIN32
char path_env_var_sep = ';';
#else
char path_env_var_sep = ':';
#endif
for (const auto &p : xstudio::utility::split(plugin_path, path_env_var_sep)) {
manager_.emplace_front_path(p);
}
}
Expand Down
7 changes: 6 additions & 1 deletion src/ui/qml/studio/src/qml_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ void xstudio::ui::qml::setup_xstudio_qml_emgine(QQmlEngine *engine, caf::actor_s
// with plugins
char *plugin_path = std::getenv("XSTUDIO_PLUGIN_PATH");
if (plugin_path) {
for (const auto &p : xstudio::utility::split(plugin_path, ':')) {
#ifdef _WIN32
char path_env_var_sep = ';';
#else
char path_env_var_sep = ':';
#endif
for (const auto &p : xstudio::utility::split(plugin_path, path_env_var_sep)) {

// note - some xSTUDIO plugins have the backend plugin component
// and a Qt/QML plugin component built into the same binary.
Expand Down