aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-05-01 18:38:38 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-05-01 18:38:38 +0200
commit563ad7c4aac83e7311ce6f16b26c983486a78cf0 (patch)
tree20d6451638f47f17763ca1883f74d94ae39adef4 /uzbl.c
parent473fc60981fe93c21fd646ffd186877ebf007e46 (diff)
fix for broken bookmark script. we cannot add arbitrary arguments to keybound commands anymore, so we must add them by default to all run_command things
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uzbl.c b/uzbl.c
index ca6c6ae..d5bdb91 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -289,7 +289,7 @@ log_history_cb () {
timeinfo = localtime ( &rawtime );
strftime (date, 80, "%Y-%m-%d %H:%M:%S", timeinfo);
GString* args = g_string_new ("");
- g_string_printf (args, "'%s' '%s' '%s'", uri, "TODO:page title here", date);
+ g_string_printf (args, "'%s'", date);
run_command(history_handler, args->str);
g_string_free (args, TRUE);
}
@@ -428,6 +428,7 @@ run_command(const char *command, const char *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, fifo_path, socket_path);
+ g_string_append_printf (to_execute, " '%s' '%s'", uri, "TODO title here");
if(args) {
g_string_append_printf (to_execute, " %s", args);
}