Digging into the way that kde handles services, I've found that this code emulates its behaviour:
Conclusion: There is no Python script engine for runners but there is for applets and data engines.
:(
To be continued (again)...
from PyQt4 import QtGui from PyKDE4.kdecore import KServiceTypeTrader QtGui.QApplication([]) constraint = "[X-Plasma-API] == '%s' and '%s' in [X-Plasma-ComponentTypes]" KServiceTypeTrader.self().query("Plasma/ScriptEngine", constraint % ("python", "Runner")) # -> [] KServiceTypeTrader.self().query("Plasma/ScriptEngine", constraint % ("python", "Applet")) # -> [<PyKDE4.kdecore.KService object at 0xb75bee6c>] KServiceTypeTrader.self().query("Plasma/ScriptEngine", constraint % ("python", "DataEngine")) # -> [<pykde4.kdecore.kservice 0xb75befac="" at="" object="">]
Conclusion: There is no Python script engine for runners but there is for applets and data engines.
:(
To be continued (again)...
Comments
Post a Comment