added support of hddtempcmd to GUI

edited readme call
This commit is contained in:
arcan1s
2014-05-22 02:43:54 +04:00
parent 8e318a99d0
commit c0a273f9f7
12 changed files with 149 additions and 85 deletions

View File

@ -133,13 +133,17 @@ class pyTextWidget(plasmascript.Applet):
dirPath = kdehome + "/share/pytextmonitor/"
else:
return
locale = QLocale.system().name().split('_')[0]
locale = str(QLocale.system().name())
if (os.path.exists(dirPath + locale + ".md")):
filePath = dirPath + locale + ".md"
elif (os.path.exists(dirPath + "en.md")):
filePath = dirPath + "en.md"
else:
return
locale = locale.split('_')[0]
if (os.path.exists(dirPath + locale + ".md")):
filePath = dirPath + locale + ".md"
elif (os.path.exists(dirPath + "en.md")):
filePath = dirPath + "en.md"
else:
return
os.system("kioclient exec " + str(filePath) + " &")