[SCM] calf/master: Change --load path to absolute one, just in case current directory was changed in the middle of the session.
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:40:13 UTC 2013
The following commit has been merged in the master branch:
commit 8a1eb7b4c679256189bdcbe3e9a81afcaadf592c
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Sun May 9 09:56:15 2010 +0100
Change --load path to absolute one, just in case current directory was changed in the middle of the session.
diff --git a/src/jackhost.cpp b/src/jackhost.cpp
index 6fa9921..552ef19 100644
--- a/src/jackhost.cpp
+++ b/src/jackhost.cpp
@@ -325,8 +325,19 @@ int main(int argc, char *argv[])
sess.midi_name = string(optarg) + "_%d";
break;
case 'l':
- sess.load_name = optarg;
+ {
+ if (!g_path_is_absolute(optarg))
+ {
+ gchar *curdir = g_get_current_dir();
+ gchar *str = g_build_filename(curdir, optarg, NULL);
+ sess.load_name = str;
+ g_free(str);
+ g_free(curdir);
+ }
+ else
+ sess.load_name = optarg;
break;
+ }
case 'M':
if (atoi(optarg)) {
sess.autoconnect_midi_index = atoi(optarg);
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list