aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jalv.c')
-rw-r--r--src/jalv.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/jalv.c b/src/jalv.c
index bdf0efc..6a15063 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -306,9 +306,10 @@ jack_session_cb(jack_session_event_t* event, void* arg)
Jalv* host = (Jalv*)arg;
char cmd[256];
- snprintf(cmd, sizeof(cmd), "jalv %s %s",
- lilv_node_as_uri(lilv_plugin_get_uri(host->plugin)),
- event->client_uuid);
+ snprintf(cmd, sizeof(cmd), "%s -u %s -l '%s'",
+ host->prog_name,
+ event->client_uuid,
+ event->session_dir);
event->command_line = strdup(cmd);
@@ -370,6 +371,7 @@ main(int argc, char** argv)
{
Jalv host;
memset(&host, '\0', sizeof(Jalv));
+ host.prog_name = argv[0];
if (jalv_init(&argc, &argv, &host.opts)) {
return EXIT_FAILURE;