Release 1.0.4

This commit is contained in:
arcan1s 2014-04-07 00:39:28 +04:00
parent c4c407542f
commit 7e85f1f933
3 changed files with 11 additions and 10 deletions

View File

@ -1,6 +1,7 @@
Ver.1.0.4: Ver.1.0.4:
+ added Qt5 gui (by default) + added Qt5 gui (by default)
+ added notifications + added notifications
* fix run command with sudo from plasmoid
Ver.1.0.3: Ver.1.0.3:
+ [plasmoid] edited russian translation + [plasmoid] edited russian translation

View File

@ -19,7 +19,7 @@ optdepends=('kdebase-runtime: sudo support'
'wpa_supplicant: wifi support') 'wpa_supplicant: wifi support')
source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${pkgname}-${pkgver}-src.tar.xz") source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${pkgname}-${pkgver}-src.tar.xz")
install="${pkgname}.install" install="${pkgname}.install"
md5sums=('6bb4897a9244cf5b9c2e45dff43c07b2') md5sums=('4dc8aa4d357fe6bdbd0a18d778a53187')
# flags # flags
_cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release" _cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release"

View File

@ -116,8 +116,8 @@ void Netctl::enableProfileSlot()
sendNotification(QString("Info"), i18n("Set profile %1 enabled", info[QString("name")])); sendNotification(QString("Info"), i18n("Set profile %1 enabled", info[QString("name")]));
} }
if (useSudo) if (useSudo)
commandLine = paths[QString("sudo")] + QString(" \"") + paths[QString("netctl")] + commandLine = paths[QString("sudo")] + QString(" ") + paths[QString("netctl")] +
enableStatus + info[QString("name")] + QString("\""); enableStatus + info[QString("name")];
else else
commandLine = paths[QString("netctl")] + enableStatus + info[QString("name")]; commandLine = paths[QString("netctl")] + enableStatus + info[QString("name")];
command.startDetached(commandLine); command.startDetached(commandLine);
@ -134,9 +134,9 @@ void Netctl::startProfileSlot(QAction *profile)
commandLine = paths[QString("netctl")] + QString(" stop ") + commandLine = paths[QString("netctl")] + QString(" stop ") +
info[QString("name")] + QString(" && "); info[QString("name")] + QString(" && ");
if (useSudo) if (useSudo)
commandLine = paths[QString("sudo")] + QString(" \"") + commandLine + commandLine = paths[QString("sudo")] + QString(" ") + commandLine +
paths[QString("netctl")] + QString(" start ") + paths[QString("netctl")] + QString(" start ") +
profile->text().remove(QString("&")) + QString("\""); profile->text().remove(QString("&"));
else else
commandLine = commandLine + paths[QString("netctl")] + QString(" start ") + commandLine = commandLine + paths[QString("netctl")] + QString(" start ") +
profile->text().remove(QString("&")); profile->text().remove(QString("&"));
@ -150,8 +150,8 @@ void Netctl::stopProfileSlot()
QString commandLine; QString commandLine;
sendNotification(QString("Info"), i18n("Stop profile %1", info[QString("name")])); sendNotification(QString("Info"), i18n("Stop profile %1", info[QString("name")]));
if (useSudo) if (useSudo)
commandLine = paths[QString("sudo")] + QString(" \"") + paths[QString("netctl")] + commandLine = paths[QString("sudo")] + QString(" ") + paths[QString("netctl")] +
QString(" stop ") + info[QString("name")] + QString("\""); QString(" stop ") + info[QString("name")];
else else
commandLine = paths[QString("netctl")] + QString(" stop ") + info[QString("name")]; commandLine = paths[QString("netctl")] + QString(" stop ") + info[QString("name")];
command.startDetached(commandLine); command.startDetached(commandLine);
@ -164,8 +164,8 @@ void Netctl::restartProfileSlot()
QString commandLine; QString commandLine;
sendNotification(QString("Info"), i18n("Restart profile %1", info[QString("name")])); sendNotification(QString("Info"), i18n("Restart profile %1", info[QString("name")]));
if (useSudo) if (useSudo)
commandLine = paths[QString("sudo")] + QString(" \"") + paths[QString("netctl")] + commandLine = paths[QString("sudo")] + QString(" ") + paths[QString("netctl")] +
QString(" restart ") + info[QString("name")] + QString("\""); QString(" restart ") + info[QString("name")];
else else
commandLine = paths[QString("netctl")] + QString(" restart ") + info[QString("name")]; commandLine = paths[QString("netctl")] + QString(" restart ") + info[QString("name")];
command.startDetached(commandLine); command.startDetached(commandLine);
@ -492,7 +492,7 @@ void Netctl::configChanged()
paths[QString("gui")] = cg.readEntry("guiPath", "/usr/bin/netctl-gui"); paths[QString("gui")] = cg.readEntry("guiPath", "/usr/bin/netctl-gui");
paths[QString("netctl")] = cg.readEntry("netctlPath", "/usr/bin/netctl"); paths[QString("netctl")] = cg.readEntry("netctlPath", "/usr/bin/netctl");
useSudo = cg.readEntry("useSudo", true); useSudo = cg.readEntry("useSudo", true);
paths[QString("sudo")] = cg.readEntry("sudoPath", "/usr/bin/kdesu -c"); paths[QString("sudo")] = cg.readEntry("sudoPath", "/usr/bin/kdesu");
bigInterface[QString("main")] = cg.readEntry("showBigInterface", true); bigInterface[QString("main")] = cg.readEntry("showBigInterface", true);
bigInterface[QString("extIp")] = cg.readEntry("showExtIp", false); bigInterface[QString("extIp")] = cg.readEntry("showExtIp", false);
bigInterface[QString("netDev")] = cg.readEntry("showNetDev", true); bigInterface[QString("netDev")] = cg.readEntry("showNetDev", true);