Jonas, On Wednesday 28 June 2006 09:18, Jonas Helgi Palsson wrote:
...
Perhaps this is an inappropriate incantation for my purposes. Is there a way to invoke Akregator that works whether or not it's already running and when it is running regardless of how it was launched?
dcop :-)
Yes. A component whose power I've scarcely tapped. I have a few scripts that use it, but too few. I've found learning about it not too easy, though the self-describing aspects are pretty helpful, to the extent that verbs are well chosen and descriptive of the actions they invoke.
use a small script (this is not really tested so YMMV)
#!/bin/bash if [ $(dcop | grep -c akregator) -gt 0 ] ; then if [ $(dcop akregator akregator_mainwindow hidden) == true ] ; then dcop akregator akregator_mainwindow setHidden false else dcop akregator akregator_mainwindow setHidden true fi else #this one you have to change to have the right params :-) akregator %i %m -caption "%c" fi
regards j
Thanks. I'll give that a try.
-- Jonas Helgi Palsson
Randall Schulz