From 4e296d5f189c2a5a4505149a7cfba3b1f50f0d85 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Fri, 4 Sep 2015 11:28:34 -0600 Subject: sqlite logging --- main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 43a7764..43d599e 100644 --- a/main.cpp +++ b/main.cpp @@ -6,11 +6,14 @@ int main(int argc, char** argv) { + if (argc<2) + return 0; gtk_init(&argc, &argv); - notify_init("Tomodori"); + notify_init("pomodori"); tres lastres; lastres.time=0; - settimer(&lastres,POTIME); + lastres.reason=argv[1]; + settimer(&lastres,1); gtk_main(); return 0; } \ No newline at end of file -- cgit v1.2.3-70-g09d2