aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-10-22 18:30:20 +0200
committerDavid Robillard <d@drobilla.net>2020-04-05 13:21:24 +0200
commit6721ea54b752b183c45bac83d705f7de40e74fd1 (patch)
treee3cc280096294279e85d3c9aa00531eefe29272e /src/jalv.c
parented1015dd8c99d8fe6275b7c8fb95774d206e6ee9 (diff)
downloadjalv-6721ea54b752b183c45bac83d705f7de40e74fd1.tar.gz
jalv-6721ea54b752b183c45bac83d705f7de40e74fd1.tar.bz2
jalv-6721ea54b752b183c45bac83d705f7de40e74fd1.zip
Add a command line argument to select a specific UI
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