lv2 / lilv

LV2 host library
ISC License
37 stars 20 forks source link

[FR/QUESTION] (How) Can lilv (Python binding) launch embedded UIs of a plugin? #29

Closed KannebTo closed 5 years ago

KannebTo commented 5 years ago

I can get the file path of the UI implementation using ui.get_binary_uri() (eg. file:///usr/lib/lv2/eg-scope.lv2/examploscope_ui.so which is a GTK interface). But it is not clear to me how to run and manage it properly. My host don't have a GUI itself. Is it possible to launch it as a standalone window? Maybe i have to somehow call the LV2UI_Show_Interface?

mfisher31 commented 5 years ago

I don't use the python bindings, but the C library isn't used for displaying UIs. You'll need suil for that. Nutshell, use lilv to get UI information which is later passed to suil functions for instantiation.

KannebTo commented 5 years ago

Thank you for the hint. I didn't know Suil before. I'll check it out.

mfisher31 commented 5 years ago

No problem @KannebTo

drobilla commented 5 years ago

If the show interface is implemented by the UI, that might work, but AFAIK nobody has implemented a simple interface for just showing a UI however. This kind of thing got really sidetracked by the (IMO misguided) external UI stuff for years.

It could probably be implemented in (or using) suil, but to support processes with no GUI at all, that's quite some work, with another process, IPC, etc.