summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/client/PluginUI.cpp11
-rw-r--r--wscript2
2 files changed, 10 insertions, 3 deletions
diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp
index 4b8651db..31e1f9ae 100644
--- a/src/client/PluginUI.cpp
+++ b/src/client/PluginUI.cpp
@@ -238,6 +238,11 @@ PluginUI::create(Ingen::World* world,
lilv_node_free(ui_plugin);
lilv_node_free(ui_portNotification);
+ const char* bundle_uri = lilv_node_as_uri(lilv_ui_get_bundle_uri(ui));
+ const char* binary_uri = lilv_node_as_uri(lilv_ui_get_binary_uri(ui));
+ char* bundle_path = lilv_file_uri_parse(bundle_uri, NULL);
+ char* binary_path = lilv_file_uri_parse(binary_uri, NULL);
+
// Instantiate the actual plugin UI via Suil
SuilInstance* instance = suil_instance_new(
PluginUI::ui_host,
@@ -246,10 +251,12 @@ PluginUI::create(Ingen::World* world,
lilv_node_as_uri(lilv_plugin_get_uri(plugin)),
lilv_node_as_uri(lilv_ui_get_uri(ui)),
lilv_node_as_uri(ui_type),
- lilv_uri_to_path(lilv_node_as_uri(lilv_ui_get_bundle_uri(ui))),
- lilv_uri_to_path(lilv_node_as_uri(lilv_ui_get_binary_uri(ui))),
+ bundle_path,
+ binary_path,
ret->_features->array());
+ free(binary_path);
+ free(bundle_path);
lilv_node_free(gtk_ui);
if (!instance) {
diff --git a/wscript b/wscript
index 7cc77a57..af739522 100644
--- a/wscript
+++ b/wscript
@@ -65,7 +65,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'jack', uselib_store='JACK',
atleast_version='0.120.0', mandatory=False)
autowaf.check_pkg(conf, 'lilv-0', uselib_store='LILV',
- atleast_version='0.17.0', mandatory=True)
+ atleast_version='0.21.0', mandatory=True)
autowaf.check_pkg(conf, 'suil-0', uselib_store='SUIL',
atleast_version='0.2.0', mandatory=True)
autowaf.check_pkg(conf, 'sratom-0', uselib_store='SRATOM',