diff options
author | David Robillard <d@drobilla.net> | 2011-08-21 05:47:28 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-08-21 05:47:28 +0000 |
commit | 08626688ff9cbfe17fd62630fcd71f85a0affdbe (patch) | |
tree | 25700d4ff0f46d088f53dc414a16e30207840df7 | |
parent | bdfc77e8cd8a586e535f5eab109dd0411e0554a0 (diff) | |
download | jalv-08626688ff9cbfe17fd62630fcd71f85a0affdbe.tar.gz jalv-08626688ff9cbfe17fd62630fcd71f85a0affdbe.tar.bz2 jalv-08626688ff9cbfe17fd62630fcd71f85a0affdbe.zip |
Fix Jack Session command line.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@3442 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/jalv.c | 8 | ||||
-rw-r--r-- | src/jalv_internal.h | 1 |
2 files changed, 6 insertions, 3 deletions
@@ -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; diff --git a/src/jalv_internal.h b/src/jalv_internal.h index c98da05..0159256 100644 --- a/src/jalv_internal.h +++ b/src/jalv_internal.h @@ -73,6 +73,7 @@ typedef struct { typedef struct { JalvOptions opts; /**< Command-line options */ + const char* prog_name; /**< Program name (argv[0]) */ LilvWorld* world; /**< Lilv World */ SerdReader* reader; /**< RDF reader (for persistence) */ SerdWriter* writer; /**< RDF writer (for persistence) */ |