moved helper daemonization

add abillity to own users org.netctlgui.helper service
This commit is contained in:
arcan1s
2014-08-12 00:23:11 +04:00
parent 80f6ccf1d1
commit 3e0ae6d4cc
8 changed files with 24 additions and 34 deletions

View File

@ -283,6 +283,20 @@ bool MainWindow::checkExternalApps(const QString apps = QString("all"))
}
bool MainWindow::checkHelperStatus()
{
if (debug) qDebug() << "[MainWindow]" << "[checkHelperStatus]";
if (useHelper) useHelper = isHelperActive();
if (useHelper)
sendDBusRequest(DBUS_HELPER_SERVICE, DBUS_CTRL_PATH,
DBUS_HELPER_INTERFACE, QString("Update"),
QList<QVariant>(), true, debug);
if (isHelperServiceActive())
configuration[QString("CLOSE_HELPER")] = QString("false");
}
QString MainWindow::checkStatus(const bool statusBool, const bool nullFalse)
{
if (debug) qDebug() << "[MainWindow]" << "[checkStatus]";