mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-27 04:29:58 +00:00
add helper proto
This commit is contained in:
@ -19,7 +19,6 @@
|
||||
#include <QApplication>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusMessage>
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QTranslator>
|
||||
#include <iostream>
|
||||
@ -55,17 +54,12 @@ int main(int argc, char *argv[])
|
||||
daemon(0, 0);
|
||||
break;
|
||||
}
|
||||
#if QT_VERSION >= 0x050000
|
||||
QApplication::setSetuidAllowed(true);
|
||||
qDebug() << QApplication::isSetuidAllowed();
|
||||
#endif
|
||||
QApplication a(argc, argv);
|
||||
QApplication::setQuitOnLastWindowClosed(false);
|
||||
// check if exists
|
||||
if (restoreExistSession())
|
||||
return 0;
|
||||
|
||||
// config path
|
||||
QMap<QString, QVariant> args = getArgs();
|
||||
// translation
|
||||
QString language = Language::defineLanguage(args[QString("config")].toString());
|
||||
|
Reference in New Issue
Block a user