Skip to content

Commit 0b022b9

Browse files
committedJan 25, 2025
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 c52860c commit 0b022b9

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
@@ -196,14 +196,17 @@ def __init__(self, eng_code, state_manager, dryrun=False, jackname=None):
196196
logging.debug("CREATING JALV ENGINE => {}".format(self.jackname))
197197

198198
if self.config_remote_display() and self.native_gui:
199-
if self.native_gui == "Qt5UI":
200-
jalv_bin = "jalv.qt5"
201-
elif self.native_gui == "Qt4UI":
202-
# jalv_bin = "jalv.qt4"
203-
jalv_bin = "jalv.gtk3"
204-
else: # elif self.native_gui=="X11UI":
205-
jalv_bin = "jalv.gtk3"
206-
self.command = [jalv_bin, "--jack-name", self.jackname, self.plugin_url]
199+
if self.native_gui == "UI":
200+
self.command = ["jalv", "-s", "-n", self.jackname, self.plugin_url]
201+
else:
202+
if self.native_gui == "Qt5UI":
203+
jalv_bin = "jalv.qt5"
204+
elif self.native_gui == "Qt4UI":
205+
# jalv_bin = "jalv.qt4"
206+
jalv_bin = "jalv.gtk3"
207+
else: # elif self.native_gui=="X11UI":
208+
jalv_bin = "jalv.gtk3"
209+
self.command = [jalv_bin, "--jack-name", self.jackname, self.plugin_url]
207210
else:
208211
self.command = ["jalv", "-n", self.jackname, self.plugin_url]
209212
# Some plugins need a X11 display for running headless (QT5, QT6),

0 commit comments

Comments
 (0)