mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-10-23 13:45:00 +00:00
changed from md readme to html
This commit is contained in:
1 parent
6f4ecbd107
commit
6fd7bad8f9
12 files changed
+991
-8
No files matched your search
@@ -143,14 +143,14 @@ class pyTextWidget(plasmascript.Applet):
|
||||
else:
|
||||
return
|
||||
locale = str(QLocale.system().name())
|
||||
if (os.path.exists(dirPath + locale + ".md")):
|
||||
filePath = dirPath + locale + ".md"
|
||||
if (os.path.exists(dirPath + locale + ".html")):
|
||||
filePath = dirPath + locale + ".html"
|
||||
else:
|
||||
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"
|
||||
if (os.path.exists(dirPath + locale + ".html")):
|
||||
filePath = dirPath + locale + ".html"
|
||||
elif (os.path.exists(dirPath + "en.html")):
|
||||
filePath = dirPath + "en.html"
|
||||
else:
|
||||
return
|
||||
os.system("kioclient exec " + str(filePath) + " &")
|
||||
|
||||
Reference in new issue
Block a user