projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a14c82
)
Added missed --config option on spawning new instance.
author
Daniel Carl
<danielcarl@gmx.de>
Sat, 22 Apr 2017 21:04:37 +0000
(23:04 +0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Sat, 22 Apr 2017 21:04:37 +0000
(23:04 +0200)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
32c50d7
..
8e38de2
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-887,6
+887,7
@@
static void spawn_new_instance(const char *uri, gboolean embed)
/* memory allocation */
char **cmd = g_malloc_n(
3 /* basename + uri + ending NULL */
+ + (vb.configfile ? 2 : 0)
#ifndef FEATURE_NO_XEMBED
+ (vb.embed && embed ? 2 : 0)
#endif
@@
-896,6
+897,10
@@
static void spawn_new_instance(const char *uri, gboolean embed)
cmd[i++] = vb.argv0;
+ if (vb.configfile) {
+ cmd[i++] = "-c";
+ cmd[i++] = vb.configfile;
+ }
#ifndef FEATURE_NO_XEMBED
if (vb.embed && embed) {
char xid[64];