aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Barrucadu <mike@barrucadu.co.uk>2009-05-16 19:20:08 +0100
committerGravatar Barrucadu <mike@barrucadu.co.uk>2009-05-16 19:20:08 +0100
commit414c3c938ead47548402f86aba788de194e1c626 (patch)
tree9341c4ba7cd2bd2db3a33578a653e30b97193bb8 /uzbl.c
parent7c0312bf61f4c66b0fe3029f19441e4155861bd7 (diff)
Added check for uzbl.state.verbose when calling scripts.
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 18de4a8..ab3c370 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -733,7 +733,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, NULL);
} else result = g_spawn_command_line_async (to_execute->str, NULL);
- 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);
return result;
}