diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-05-01 18:38:38 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-05-01 18:38:38 +0200 |
commit | 563ad7c4aac83e7311ce6f16b26c983486a78cf0 (patch) | |
tree | 20d6451638f47f17763ca1883f74d94ae39adef4 /uzbl.c | |
parent | 473fc60981fe93c21fd646ffd186877ebf007e46 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |