projects
/
espeaktime
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac3dbed
)
config: always ignore silent profile when testing
author
Alex Badea
<vamposdecampos@gmail.com>
Mon, 21 Jun 2010 20:42:04 +0000
(23:42 +0300)
committer
Alex Badea
<vamposdecampos@gmail.com>
Mon, 21 Jun 2010 20:52:37 +0000
(23:52 +0300)
src/config.c
patch
|
blob
|
history
diff --git
a/src/config.c
b/src/config.c
index
8a82c8d
..
46773be
100644
(file)
--- a/
src/config.c
+++ b/
src/config.c
@@
-69,7
+69,8
@@
void cfg_speak(struct espeaktime_settings *cfg, gboolean test_mode)
strftime(text, sizeof(text), cfg->text, tm);
setenv("EST_TESTMODE", test_mode ? "1" : "0", 1);
- setenv("EST_IGN_SILENT", cfg->ignore_silent ? "1" : "0", 1);
+ setenv("EST_IGN_SILENT", (cfg->ignore_silent || test_mode)
+ ? "1" : "0", 1);
pid = fork();
if (pid < 0) {