Skip to content

Commit 5b8dedd

Browse files
committedDec 14, 2024
Support LV2 UIs with uncommon GUI toolkits.
These will use LV2 UI's fallback API, "showInterface" and "idleInterface", which jalv supports, but only when running the non-toolkit version. The name "UI" is taken from the LV2 specification itself; it is the base class of all of the others, like "GtkUI" and "X11UI". Signed-off-by: Kristian Amlie <kristian@amlie.name>
1 parent 15d81fb commit 5b8dedd

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed
 

‎zyngine/zynthian_engine_jalv.py

+11-8
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,17 @@ def __init__(self, eng_code, state_manager, dryrun=False, jackname=None):
185185
logging.debug("CREATING JALV ENGINE => {}".format(self.jackname))
186186

187187
if self.config_remote_display() and self.native_gui:
188-
if self.native_gui == "Qt5UI":
189-
jalv_bin = "jalv.qt5"
190-
elif self.native_gui == "Qt4UI":
191-
# jalv_bin = "jalv.qt4"
192-
jalv_bin = "jalv.gtk"
193-
else: # elif self.native_gui=="X11UI":
194-
jalv_bin = "jalv.gtk"
195-
self.command = f"{jalv_bin} --jack-name {self.jackname} {self.plugin_url}"
188+
if self.native_gui == "UI":
189+
self.command = f"jalv -s -n {self.jackname} {self.plugin_url}"
190+
else:
191+
if self.native_gui == "Qt5UI":
192+
jalv_bin = "jalv.qt5"
193+
elif self.native_gui == "Qt4UI":
194+
# jalv_bin = "jalv.qt4"
195+
jalv_bin = "jalv.gtk"
196+
else: # elif self.native_gui=="X11UI":
197+
jalv_bin = "jalv.gtk"
198+
self.command = f"{jalv_bin} --jack-name {self.jackname} {self.plugin_url}"
196199
else:
197200
self.command = f"jalv -n {self.jackname} {self.plugin_url}"
198201
# Some plugins need a X11 display for running headless (QT5, QT6),

0 commit comments

Comments
 (0)