projects
/
dockapps
/
wmnotify.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
99dc09b
)
Add debug log messages
author
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 15 Jan 2017 02:34:15 +0000
(21:34 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Fri, 15 Feb 2019 22:14:53 +0000
(17:14 -0500)
src/wmnotify.c
patch
|
blob
|
history
diff --git
a/src/wmnotify.c
b/src/wmnotify.c
index
9646d38
..
2ad8615
100644
(file)
--- a/
src/wmnotify.c
+++ b/
src/wmnotify.c
@@
-189,7
+189,9
@@
static void DoubleClick(void)
int status;
if (wmnotify_infos.mail_client_argv[0] != NULL) {
int status;
if (wmnotify_infos.mail_client_argv[0] != NULL) {
- /* Starting external mail client. */
+ if (wmnotify_infos.debug)
+ printf("%s: Starting mail client\n", PACKAGE);
+
ExecuteCommand(wmnotify_infos.mail_client_argv);
double_click_notif = true;
ExecuteCommand(wmnotify_infos.mail_client_argv);
double_click_notif = true;
@@
-367,6
+369,9
@@
static void *TimerThread(void *arg)
if (wmnotify_infos.debug)
printf("%s: Timer thread iteration.\n", PACKAGE);
if (wmnotify_infos.debug)
printf("%s: Timer thread iteration.\n", PACKAGE);
+ if (manual_check && wmnotify_infos.debug)
+ printf("%s: Manual check requested\n", PACKAGE);
+
if ((manual_check == true) || (counter == 0)) {
new_messages = CheckForNewMail(manual_check);
manual_check = false;
if ((manual_check == true) || (counter == 0)) {
new_messages = CheckForNewMail(manual_check);
manual_check = false;