diff options
-rw-r--r-- | TODO | 7 | ||||
-rw-r--r-- | uzbl.c | 9 |
2 files changed, 8 insertions, 8 deletions
@@ -1,9 +1,5 @@ ASAP -* history logging broken -* weird args to external commnads -* load from history works, but why, since there is no /tmp/uzbl.history - * implement all the ideas from README * get a logo * improve site @@ -16,7 +12,8 @@ ASAP * implement a vimperator-like link following scheme. but let user pick his favorite characters to construct the "link identifiers" with. * add a keybind to hand the current url to an external scrips, so you can edit it and/or store it in the primary and secondary clipboards * use http://library.gnome.org/devel/glib/stable/glib-Hash-Tables.html#g-hash-table-insert for tracking bindings and wherever we use structs and ugly loops - +* char *XDG_CONFIG_HOME_default = "~/.config"; where does ~ get expanded? +* fifo -> socket. so you can do question-response. socket is slightly more complicated so we'll need to create a uzblctrl SOMEDAY: check if we can make the settings loading less hard coded. eg( keep a list of all settings, and for each one, try to load it) @@ -231,9 +231,12 @@ 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 ? "FALSE" : "TRUE" )); + printf("Called %s. Result: %s\n", to_execute->str, (result ? "TRUE" : "FALSE" )); return result; } @@ -244,7 +247,7 @@ parse_command(const char *cmd) { char buffer[512]; strcpy (buffer, cmd); char * command_name = strtok (buffer, " "); - char * command_param = strtok (NULL, " ,"); + gchar * command_param = strtok (NULL, " ,"); Command *c_tmp = NULL; for (i = 0; i < LENGTH (commands); i++) { |