+
+void LatitudeGUI::mode_demonio() {
+ if ( ! system("killall -0 GoogleLatitudeDaemon 2> /dev/null" ) ) {
+ system("killall GoogleLatitudeDaemon 2> /dev/null");
+ demonio->setText(tr("&Start Daemon"));
+ } else {
+ QProcess *cli = new QProcess(this);
+ cli->start(QCoreApplication::applicationDirPath()+"/GoogleLatitudeDaemon");
+ qDebug() << "LatitudeGUI: demonio " << QCoreApplication::applicationDirPath()+"/GoogleLatitudeDaemon";
+ if ( ! system("killall -0 GoogleLatitudeDaemon 2> /dev/null" ) ) {
+ demonio->setText(tr("&Stop Daemon"));
+ }
+ }
+}