Browse Source

added db create to daemon main

main
Stefan Pranger 4 years ago
parent
commit
a794d93997
  1. 4
      calendar-daemon.cpp

4
calendar-daemon.cpp

@ -13,6 +13,7 @@
#include <db/db.h>
#include <db/create.h>
#include <util/notifications.h>
#include <util/calendar_parsing.h>
@ -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)
{

Loading…
Cancel
Save