[PC-BSD Commits] r3094 - pcbsd/trunk/NetworkTray
svn at pcbsd.org
svn at pcbsd.org
Wed Dec 17 09:18:49 PST 2008
Author: kris
Date: 2008-12-17 09:18:49 -0800 (Wed, 17 Dec 2008)
New Revision: 3094
Modified:
pcbsd/trunk/NetworkTray/NetworkTray.cpp
Log:
Updated the network tray to not use a hardcoded kdesu location
Modified: pcbsd/trunk/NetworkTray/NetworkTray.cpp
===================================================================
--- pcbsd/trunk/NetworkTray/NetworkTray.cpp 2008-12-17 17:17:31 UTC (rev 3093)
+++ pcbsd/trunk/NetworkTray/NetworkTray.cpp 2008-12-17 17:18:49 UTC (rev 3094)
@@ -343,11 +343,11 @@
if ( DeviceType == "Ethernet" )
{
- Q3Process process(QStringList::split(' ', "/usr/local/bin/kdesu --noignorebutton -d /PCBSD/networkmanager/bin/ethernetconfig " + DeviceName));
+ Q3Process process(QStringList::split(' ', "kdesu --noignorebutton -d /PCBSD/networkmanager/bin/ethernetconfig " + DeviceName));
if(!process.start())
KMessageBox::error(this->parentWidget(), tr("Can not start network configuration utility."));
} else {
- Q3Process process(QStringList::split(' ', "/usr/local/bin/kdesu --noignorebutton -d /PCBSD/networkmanager/bin/wificonfig " + DeviceName));
+ Q3Process process(QStringList::split(' ', "kdesu --noignorebutton -d /PCBSD/networkmanager/bin/wificonfig " + DeviceName));
if(!process.start())
KMessageBox::error(this->parentWidget(), tr("Can not start network configuration utility."));
}
@@ -635,7 +635,7 @@
// If the user wants to restart the network, do so
void NetworkTray::slotRestartNetwork() {
- Q3Process process(QStringList::split(' ', "/usr/local/bin/kdesu --noignorebutton -d /etc/rc.d/netif restart ; /etc/rc.d/routing restart ; /etc/rc.d/ppp restart"));
+ Q3Process process(QStringList::split(' ', "kdesu --noignorebutton -d /etc/rc.d/netif restart ; /etc/rc.d/routing restart ; /etc/rc.d/ppp restart"));
if(!process.start())
KMessageBox::error(this->parentWidget(), tr("Can not restart the network!"));
}
@@ -644,13 +644,13 @@
QString ProfileName = "internet";
// Run the enable PPPOE command
- Q3Process process(QStringList::split(' ', "/usr/local/bin/kdesu --noignorebutton ppp -background " + ProfileName));
+ Q3Process process(QStringList::split(' ', "kdesu --noignorebutton ppp -background " + ProfileName));
if(!process.start())
KMessageBox::error(this->parentWidget(), tr("Can not restart the network!"));
}
void NetworkTray::slotDisablePPPOE() {
// Run the command to stop PPPOE
- Q3Process process(QStringList::split(' ', "/usr/local/bin/kdesu --noignorebutton -d killall ppp"));
+ Q3Process process(QStringList::split(' ', "kdesu --noignorebutton -d killall ppp"));
if(!process.start())
KMessageBox::error(this->parentWidget(), tr("Can not restart the network!"));
}
@@ -714,11 +714,11 @@
if ( DeviceType == "Ethernet" )
{
- Q3Process process(QStringList::split(' ', "/usr/local/bin/kdesu --noignorebutton -d /PCBSD/networkmanager/bin/ethernetconfig info " + DeviceName));
+ Q3Process process(QStringList::split(' ', "kdesu --noignorebutton -d /PCBSD/networkmanager/bin/ethernetconfig info " + DeviceName));
if(!process.start())
KMessageBox::error(this->parentWidget(), tr("Can not start network configuration utility."));
} else {
- Q3Process process(QStringList::split(' ', "/usr/local/bin/kdesu --noignorebutton -d /PCBSD/networkmanager/bin/wificonfig info " + DeviceName));
+ Q3Process process(QStringList::split(' ', "kdesu --noignorebutton -d /PCBSD/networkmanager/bin/wificonfig info " + DeviceName));
if(!process.start())
KMessageBox::error(this->parentWidget(), tr("Can not start network configuration utility."));
}
More information about the Commits
mailing list