Report spawns on verbose only.
authorDuClare <akarinotengoku@gmail.com>
Sun, 17 May 2009 11:38:41 +0000 (14:38 +0300)
committerDuClare <akarinotengoku@gmail.com>
Sun, 17 May 2009 11:38:41 +0000 (14:38 +0300)
uzbl.c

diff --git a/uzbl.c b/uzbl.c
index cdefa35..401a741 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -742,7 +742,8 @@ run_command (const char *command, const char *args, const gboolean sync, char **
     if (sync) {
         result = g_spawn_command_line_sync (to_execute->str, stdout, NULL, NULL, &err);
     } else result = g_spawn_command_line_async (to_execute->str, &err);
-    printf("Called %s.  Result: %s\n", to_execute->str, (result ? "TRUE" : "FALSE" ));
+    if (uzbl.state.verbose)
+        printf("Called %s.  Result: %s\n", to_execute->str, (result ? "TRUE" : "FALSE" ));
     g_string_free (to_execute, TRUE);
     if (err) {
         g_printerr("error on run_command: %s\n", err->message);