diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-10-22 18:30:20 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-05 13:21:24 +0200 |
commit | 6721ea54b752b183c45bac83d705f7de40e74fd1 (patch) | |
tree | e3cc280096294279e85d3c9aa00531eefe29272e /src/jalv.c | |
parent | ed1015dd8c99d8fe6275b7c8fb95774d206e6ee9 (diff) | |
download | jalv-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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |