Release 1.3.5

* fix bug with definition net dev in  old version of net-tools
This commit is contained in:
arcan1s
2013-09-29 00:44:03 +04:00
parent 1f18e2fe67
commit c198b7596a
6 changed files with 31 additions and 29 deletions

View File

@ -69,8 +69,8 @@ class pyTextWidget(plasmascript.Applet):
try:
interfaces = []
for line in commands.getoutput("ifconfig -a").split("\n"):
if ((line != '') and (line[0] != ' ') and (line[0:3] != 'lo:')):
interfaces.append(line.split(":")[0])
if ((line != '') and (line[0] != ' ') and (line.split(":")[0].split()[0] != 'lo')):
interfaces.append(line.split(":")[0].split()[0])
for device in interfaces:
if (commands.getoutput("ifconfig " + device + " | grep 'inet '") != ''):

View File

@ -12,7 +12,7 @@ X-Plasma-RequiredExtensions=LaunchApp,LocalIO,FileDialog
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
X-KDE-PluginInfo-Email=esalexeev@gmail.com
X-KDE-PluginInfo-Name=py-text-monitor
X-KDE-PluginInfo-Version=1.3.4
X-KDE-PluginInfo-Version=1.3.5
X-KDE-PluginInfo-Website=http://kde-look.org/
X-KDE-PluginInfo-Category=System Information
X-KDE-PluginInfo-Depends=