Does anyone know of a way to restart a screenlet using bash? I have a picframe screenlet that I'd like to show a slideshow with, but it doesn't update once launched.
I've tried killing the screenlet using the PID using the following, but it doesn't die.
Code:
CURPID=`ps -Af | grep PicframeScreenlet.py | sed 's/^[a-zA-Z]* *\([0-9]*\).*/\1/' | head --lines=1`
kill $CURPID
The plan being to start it again immediately. It would, obviously, be much nicer to simply restart it, but any option would be much appreciated.
Thanks,