mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-09 20:05:53 +00:00
implement autoupdate feature
fix bug with invalid profile path using by external editor
This commit is contained in:
@ -6,6 +6,12 @@
|
||||
[Common]
|
||||
# application language
|
||||
LANGUAGE=en
|
||||
# auto update interval for main tab in seconds
|
||||
# 0 means there is no updates
|
||||
MAINUPDATE=0
|
||||
# auto update interval for wifi tab in seconds
|
||||
# 0 means there is no updates
|
||||
WIFIUPDATE=0
|
||||
# create system tray icon.
|
||||
# This option is not recognized by netctlgui-helper
|
||||
SYSTRAY=true
|
||||
|
@ -48,6 +48,8 @@ service name. This option is not recognized by
|
||||
path to directory which contains interface information
|
||||
.IP "LANGUAGE=en"
|
||||
application language
|
||||
.IP "MAINUPDATE=0"
|
||||
main tab autoupdate interval in seconds. 0 is disable autoupdate
|
||||
.IP "NETCTL_PATH=/usr/bin/netctl"
|
||||
path to
|
||||
.BR netctl (1)
|
||||
@ -96,6 +98,8 @@ use
|
||||
.BR netctlgui-helper (1)
|
||||
if it is available. This option is not recognized by
|
||||
.BR netctlgui-helper (1)
|
||||
.IP "WIFIUPDATE=0"
|
||||
WiFi tab autoupdate interval in seconds. 0 is disable autoupdate
|
||||
.IP "WPACLI_PATH=/usr/bin/wpa_cli"
|
||||
path to
|
||||
.BR wpa_cli (8)
|
||||
|
@ -112,7 +112,7 @@ QString ControlAdaptor::SecurityDocs()
|
||||
|
||||
bool ControlAdaptor::SelfDestruct(const QString approve)
|
||||
{
|
||||
if (approve == QString("Yes, please")) return SelfDestruct(approve);
|
||||
if (approve == QString("Yes please")) return SelfDestruct(approve);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ bool existingSessionOperation(const QString operation)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QMap<QString, QVariant> args = getArgs();
|
||||
QVariantMap args = getArgs();
|
||||
// reading
|
||||
for (int i=1; i<argc; i++) {
|
||||
if ((QString(argv[i]) == QString("-c")) || (QString(argv[i]) == QString("--config"))) {
|
||||
|
@ -29,9 +29,9 @@ QString errorMessage()
|
||||
}
|
||||
|
||||
|
||||
QMap<QString, QVariant> getArgs()
|
||||
QVariantMap getArgs()
|
||||
{
|
||||
QMap<QString, QVariant> args;
|
||||
QVariantMap args;
|
||||
args[QString("config")] = QString("%1/.config/netctl-gui.conf").arg(QDir::homePath());
|
||||
args[QString("debug")] = false;
|
||||
args[QString("nodaemon")] = false;
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
|
||||
QString errorMessage();
|
||||
QMap<QString, QVariant> getArgs();
|
||||
QVariantMap getArgs();
|
||||
QString helpMessage();
|
||||
QString infoMessage();
|
||||
QString versionMessage();
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include "version.h"
|
||||
|
||||
|
||||
NetctlHelper::NetctlHelper(QObject *parent, QMap<QString, QVariant> args)
|
||||
NetctlHelper::NetctlHelper(QObject *parent, QVariantMap args)
|
||||
: QObject(parent),
|
||||
configPath(args[QString("config")].toString()),
|
||||
debug(args[QString("debug")].toBool()),
|
||||
|
@ -29,7 +29,7 @@ class NetctlHelper : public QObject
|
||||
|
||||
public:
|
||||
explicit NetctlHelper(QObject *parent = 0,
|
||||
QMap<QString, QVariant> args = QMap<QString, QVariant>());
|
||||
QVariantMap args = QVariantMap());
|
||||
~NetctlHelper();
|
||||
QStringList printSettings();
|
||||
|
||||
|
Reference in New Issue
Block a user