aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-04-27 20:26:51 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-04-27 20:26:51 +0200
commit45f8d682c4072fde518710ad97c2e6a0b9fa48e4 (patch)
treeca181d4fc2c1426241b5feb868405885264f20ae /uzbl.c
parent22c10b01ea96a73599896f66b0600c8a60f426e2 (diff)
fix for some commands dont have extra args
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/uzbl.c b/uzbl.c
index 91c2cff..665ad23 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -231,7 +231,10 @@ run_command(const char *command, const char *args) {
//command <uzbl conf> <uzbl pid> <uzbl win id> <uzbl fifo file> [args]
GString* to_execute = g_string_new ("");
gboolean result;
- g_string_printf (to_execute, "%s '%s' '%i' '%i' '%s' %s", command, config_file, (int) getpid() , (int) xwin, "/tmp/uzbl_25165827", args);
+ g_string_printf (to_execute, "%s '%s' '%i' '%i' '%s'", command, config_file, (int) getpid() , (int) xwin, fifopath);
+ if(args) {
+ g_string_append_printf (to_execute, " %s", args);
+ }
result = g_spawn_command_line_async (to_execute->str, NULL);
printf("Called %s. Result: %s\n", to_execute->str, (result ? "TRUE" : "FALSE" ));
return result;