mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-07 11:05:45 +00:00
@ -23,9 +23,6 @@ SKIPCOMPONENTS=false
|
||||
# use netctlgui-helper if it is available.
|
||||
# This option is not recognized by netctlgui-helper
|
||||
USE_HELPER=true
|
||||
# group which allows to control helper, refer to DBus configuration
|
||||
# This option is not recognized by netctlgui-helper
|
||||
HELPER_GROUP=network
|
||||
# force use SUDO_PATH for helper instead of using setuid(3) to child processes
|
||||
FORCE_SUDO=false
|
||||
# hide application to tray on exit if tray is available.
|
||||
@ -77,6 +74,3 @@ IFACE_DIR=/sys/class/net/
|
||||
RFKILL_DIR=/sys/class/rfkill/
|
||||
# prefered wireless interface
|
||||
PREFERED_IFACE=
|
||||
|
||||
|
||||
|
||||
|
@ -110,9 +110,11 @@ QString ControlAdaptor::SecurityDocs()
|
||||
}
|
||||
|
||||
|
||||
bool ControlAdaptor::SelfDestruct()
|
||||
bool ControlAdaptor::SelfDestruct(const QString approve)
|
||||
{
|
||||
return SelfDestruct();
|
||||
if (approve == QString("Yes, please")) return SelfDestruct(approve);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,7 +45,7 @@ public slots:
|
||||
QString LibraryDocs();
|
||||
QString Pony();
|
||||
QString SecurityDocs();
|
||||
bool SelfDestruct();
|
||||
bool SelfDestruct(const QString approve);
|
||||
QStringList Settings();
|
||||
QStringList UIDs();
|
||||
bool Update();
|
||||
|
@ -156,7 +156,6 @@ QMap<QString, QString> NetctlHelper::getSettings(const QString file)
|
||||
|
||||
settings.beginGroup(QString("Helper"));
|
||||
config[QString("USE_HELPER")] = settings.value(QString("USE_HELPER"), QString("true")).toString();
|
||||
config[QString("HELPER_GROUP")] = settings.value(QString("HELPER_GROUP"), QString("network")).toString();
|
||||
config[QString("FORCE_SUDO")] = settings.value(QString("FORCE_SUDO"), QString("false")).toString();
|
||||
config[QString("CLOSE_HELPER")] = settings.value(QString("CLOSE_HELPER"), QString("false")).toString();
|
||||
config[QString("HELPER_PATH")] = settings.value(QString("HELPER_PATH"), QString("/usr/bin/netctlgui-helper")).toString();
|
||||
|
Reference in New Issue
Block a user