projects
/
googlelatitude
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 0.6, daemon, gps, battery saver
[googlelatitude]
/
src
/
main-daemon.cpp
diff --git
a/src/main-daemon.cpp
b/src/main-daemon.cpp
index
843aa67
..
6007c60
100644
(file)
--- a/
src/main-daemon.cpp
+++ b/
src/main-daemon.cpp
@@
-6,8
+6,17
@@
int main(int argc, char *argv[]) {
QCoreApplication::setApplicationName("GoogleLatitude");
QCoreApplication app(argc, argv);
QCoreApplication::setApplicationName("GoogleLatitude");
QCoreApplication app(argc, argv);
- Daemon *demonio;
- demonio = new Daemon();
+
+ if ( app.arguments().contains(QString("--init")) ) {
+ QSettings set;
+ if ( ! set.value("daemon",false).toBool() ) {
+ qDebug() << "No Daemon mode enable";
+ return 0;
+ }
+ }
+
+ Daemon demonio;
+ Q_UNUSED(demonio);
return app.exec();
}
return app.exec();
}