You are not logged in.
Hi!
I created a small plasmoid for KDE to monitor/start/stop running daemons on an archlinux-system. For me as a developer and someone who sometimes uses this and that and sometimes not it is quite usefull. Hope you might enjoy it, too. Here is the link:
Offline
Hy tiberiusGER,
i just installed Daemon plasmoid, it's usefull.
what about adding restart daemon?? it's possible??
Thx,
"Am I not good enough for you?"
Offline
Yes this is indeed a good idea. I am working on a way to get this running smoothly on Kubuntu and will add the restart-functionality to the next version.
Thank you for your idea!
Offline
Thx for quick reply
i'll waiting next release
cu,
"Am I not good enough for you?"
Offline
I'm running kdemod 4.3 and have the lastest version of the daemon plasmoid installed but getting "script initialization failed error" messages.
the following are the message from .xsession-errors
Traceback (most recent call last):
File "/usr/share/apps/plasma_scriptengine_python/pyappletscript.py", line 55, in init
self.pyapplet.init()
File "/home/vincent/.kdemod4/share/apps/plasma/plasmoids/DaeMon/contents/code/main.py", line 49, in init
self.initSettings()
File "/home/vincent/.kdemod4/share/apps/plasma/plasmoids/DaeMon/contents/code/main.py", line 166, in initSettings
self.settings["polling_interval"] = int(self.cg.readEntry("polling_interval", "2000"))
TypeError: int() argument must be a string or a number, not 'QVariant'
TypeError: invalid result type from PythonAppletScript.shape()
TypeError: invalid result type from PythonAppletScript.shape()
TypeError: invalid result type from PythonAppletScript.shape()
Thanks,
Vincent
Offline
Coincidentally, I have been working this problem today in an effort to learn plasmoid programming in python.
Try applying the following changes to main.py in the DaeMon directory: (The path is probably:
~/.kde4/share/apps/plasma/plasmoids/DaeMon/contents/code/main.py
151c151
< files = data[QString("files.all")]
---
> files = data[QString("files.all")].toStringList()
166,169c166,169
< self.settings["polling_interval"] = int(self.cg.readEntry("polling_interval", "2000").toString())
< self.settings["polling_directory"] = self.cg.readEntry("polling_directory", "/var/run/daemons").toString()
< self.settings["daemon_directory"] = self.cg.readEntry("daemon_directory", "/etc/rc.d").toString()
< self.settings["pid_suffix"] = self.cg.readEntry("pid_suffix","").toString()
---
> self.settings["polling_interval"] = int(self.cg.readEntry("polling_interval", "2000"))
> self.settings["polling_directory"] = self.cg.readEntry("polling_directory", "/var/run/daemons")
> self.settings["daemon_directory"] = self.cg.readEntry("daemon_directory", "/etc/rc.d")
> self.settings["pid_suffix"] = self.cg.readEntry("pid_suffix","")
171c171
< daemonsQStringList = (self.cg.readEntry("daemons", QStringList())).toStringList()
---
> daemonsQStringList = self.cg.readEntry("daemons", QStringList())
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
ahhh it works, thanks for the help ewaller.
Offline