aboutsummaryrefslogtreecommitdiffstats
path: root/src/io.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-08-01 17:44:51 +0000
committerFrederic Culot <calcurse@culot.org>2009-08-01 17:44:51 +0000
commit989b6c885f06f887cb8dafcd69059c376988d938 (patch)
tree9021fa630bffc46dfb881a4e72c48fde21e42ee3 /src/io.c
parent71d6cfda92e55915bfc20e012e2bc069ff6aad99 (diff)
downloadcalcurse-989b6c885f06f887cb8dafcd69059c376988d938.tar.gz
calcurse-989b6c885f06f887cb8dafcd69059c376988d938.zip
Save and restore daemon configuration options.
Diffstat (limited to 'src/io.c')
-rwxr-xr-xsrc/io.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index 97b424d..eb14e19 100755
--- a/src/io.c
+++ b/src/io.c
@@ -1,4 +1,4 @@
-/* $calcurse: io.c,v 1.76 2009/07/29 18:20:55 culot Exp $ */
+/* $calcurse: io.c,v 1.77 2009/08/01 17:44:52 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -940,7 +940,18 @@ io_save_conf (conf_t *conf)
if (ui_mode == UI_CURSES)
pthread_mutex_unlock (&nbar.mutex);
-
+
+ (void)fprintf (fp, "\n# If this option is set to yes, "
+ "calcurse will run in background to get notifications "
+ "after exiting\n");
+ (void)fprintf (fp, "notify-daemon_enable=\n");
+ (void)fprintf (fp, "%s\n", dmon.enable ? "yes" : "no");
+
+ (void)fprintf (fp, "\n# If this option is set to yes, "
+ "activity will be logged when running in background\n");
+ (void)fprintf (fp, "notify-daemon_log=\n");
+ (void)fprintf (fp, "%s\n", dmon.log ? "yes" : "no");
+
file_close (fp, __FILE_POS__);
return 1;