projects
/
googlelatitude
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Work in progress: hacks at vienna, do not use it
[googlelatitude]
/
latituded
/
main.cpp
diff --git
a/latituded/main.cpp
b/latituded/main.cpp
index
fe07d64
..
25e1a04
100644
(file)
--- a/
latituded/main.cpp
+++ b/
latituded/main.cpp
@@
-1,4
+1,5
@@
#include <QtCore/QCoreApplication>
#include <QtCore/QCoreApplication>
+#include <QtCore/QStringList>
#include "daemon.h"
int main(int argc, char *argv[]) {
#include "daemon.h"
int main(int argc, char *argv[]) {
@@
-12,5
+13,13
@@
int main(int argc, char *argv[]) {
Q_UNUSED(mygui)
Q_UNUSED(mygui)
+ if ( lu.arguments().contains(QString("--init")) ) {
+ QSettings set;
+ if ( ! set.value("daemon",false).toBool() ) {
+ qDebug() << "No Daemon mode enable";
+ return 0;
+ }
+ }
+
return lu.exec();
}
return lu.exec();
}