Mailinglist Archive: opensuse-kde (182 mails)

< Previous Next >
Re: [suse-kde] Akregator Start-up Anomaly
  • From: Jonas Helgi Palsson <jonas.palsson@xxxxxxxxxxxxxxxx>
  • Date: Wed, 28 Jun 2006 18:50:17 +0200
  • Message-id: <200606281850.17120.jonas.palsson@xxxxxxxxxxxxxxxx>
On Wednesday 28 June 2006 18:37, Randall R Schulz wrote:
> On Wednesday 28 June 2006 09:18, Jonas Helgi Palsson wrote:
> > ...
> > 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.

I've not really used dcop for anything useful, but my head is full of plans to
use it in diverse scripts.

>
> > 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

> Thanks. I'll give that a try.

When you have tried afew times and have made it work, could you please post
the final script?

regards
j

--
Jonas Helgi Palsson
"Microsoft is not the answer. Microsoft is the question. NO is the answer."
-Erik Naggum

< Previous Next >