mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-21 09:39:58 +00:00
rewrite mainwindow to use helper
This commit is contained in:
@ -41,15 +41,12 @@ bool checkExistSession()
|
||||
QString("Active"));
|
||||
QDBusMessage response = bus.call(request);
|
||||
QList<QVariant> arguments = response.arguments();
|
||||
return ((arguments.size() == 1) && arguments[0].toBool());
|
||||
return !arguments.isEmpty();
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// setuid(getuid());
|
||||
// qDebug() << getuid();
|
||||
// qDebug() << geteuid();
|
||||
// detach from console
|
||||
bool isDaemon = true;
|
||||
for (int i=0; i<argc; i++)
|
||||
|
Reference in New Issue
Block a user