aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jalv.c')
-rw-r--r--src/jalv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/jalv.c b/src/jalv.c
index c54d7ad..09b15e3 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -737,6 +737,15 @@ jalv_select_custom_ui(const Jalv* const jalv)
{
const char* const native_ui_type_uri = jalv_native_ui_type();
+ if (jalv->opts.ui_uri) {
+ // Specific UI explicitly requested by user
+ LilvNode* uri = lilv_new_uri(jalv->world, jalv->opts.ui_uri);
+ const LilvUI* ui = lilv_uis_get_by_uri(jalv->uis, uri);
+
+ lilv_node_free(uri);
+ return ui;
+ }
+
#ifdef HAVE_SUIL
if (native_ui_type_uri) {
// Try to find an embeddable UI