summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 5 insertions, 2 deletions
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