projects
/
espeaktime
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
daemon: double check that the display is locked before speaking
[espeaktime]
/
src
/
config.c
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);
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) {
pid = fork();
if (pid < 0) {