Fixed bug with notifyrc

This commit is contained in:
arcan1s
2013-10-22 16:53:49 +04:00
parent b7f4b80c7e
commit 60f1cd8c58
3 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class pyTextWidget(plasmascript.Applet):
self.setHasConfigurationInterface(True)
# Create notifyrc file if required
kdehome = unicode(KGlobal.dirs().localkdedir())
if ((not os.path.exists(kdehome + "/share/apps/plasma_applet_pytextmonitor/plasma_applet_pytextmonitor.notifyrc")) or
if ((not os.path.exists(kdehome + "/share/apps/plasma_applet_pytextmonitor/plasma_applet_pytextmonitor.notifyrc")) and
(not os.path.exists("/usr" + "/share/apps/plasma_applet_pytextmonitor/plasma_applet_pytextmonitor.notifyrc"))):
self.createNotifyrc(kdehome)