#include <QtCore/QLocale>
#include <QtGui/QApplication>
#include "calllistener.h"
+#include "settings.h"
int main(int argc, char *argv[])
{
+ // If daemon was started on boot, the first parameter is not set
+ if(!(argc >= 2 && argv[1] == "manual"))
+ {
+ if(Settings::instance()->get("autostart") == "0")
+ {
+ // Autostart is disabled -> exit
+ return 0;
+ }
+ }
+
QApplication app(argc, argv);
QTranslator translator;