From a794d939976dd1083264de1eb919a8bb7c930f71 Mon Sep 17 00:00:00 2001 From: Stefan Pranger Date: Mon, 28 Jun 2021 16:57:41 +0200 Subject: [PATCH] added db create to daemon main --- calendar-daemon.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calendar-daemon.cpp b/calendar-daemon.cpp index a970275..c7465d3 100644 --- a/calendar-daemon.cpp +++ b/calendar-daemon.cpp @@ -13,6 +13,7 @@ #include +#include #include #include @@ -91,11 +92,14 @@ int main(void) //close(STDERR_FILENO); // Daemon-specific intialization should go here + const int SLEEP_INTERVAL = 5 * MINUTE; std::string calendar = "dummy"; std::string directory = "/home/stefan/.local/share/khal/calendars/" + calendar + "/"; init_database(calendar); + + // Enter daemon loop while(1) {