summaryrefslogtreecommitdiff
path: root/sowatchd/main.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-10 19:15:18 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-10 19:15:18 +0200
commit15ac98299094f5502044fde7820bf4b05a898a83 (patch)
tree959497f9c1b6745da64c044720874318618b9033 /sowatchd/main.cpp
parent4ad9e1874af29864ca8531e5ba033b85d6616639 (diff)
downloadsowatch-15ac98299094f5502044fde7820bf4b05a898a83.tar.gz
sowatch-15ac98299094f5502044fde7820bf4b05a898a83.zip
autostart daemon on boot
Diffstat (limited to 'sowatchd/main.cpp')
-rw-r--r--sowatchd/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/sowatchd/main.cpp b/sowatchd/main.cpp
index 2816830..7853cde 100644
--- a/sowatchd/main.cpp
+++ b/sowatchd/main.cpp
@@ -15,14 +15,14 @@ using namespace sowatch;
int main(int argc, char *argv[])
{
- // Some plugins might require a user interface, so use QApplication instead
- // of QCoreApplication
- QApplication a(argc, argv);
+ // Some plugins use QtGui functionality, so QApplication must be used
+ // instead of QCoreApplication.
+ QApplication app(argc, argv);
QApplication::setOrganizationDomain("com.javispedro.sowatch");
QApplication::setOrganizationName("sowatch");
QApplication::setApplicationName("sowatchd");
- sowatch::daemon = new Daemon(&a);
+ sowatch::daemon = new Daemon(&app);
new DaemonAdaptor(sowatch::daemon);
QDBusConnection connection = QDBusConnection::sessionBus();
@@ -33,5 +33,5 @@ int main(int argc, char *argv[])
qCritical("Could not register daemon object");
}
- return a.exec();
+ return app.exec();
}