Reading command output from plasmoid

2010-02-21 Thread Nikola Milenković
Hi,

i would like to join the Jam Session, and I have an idea for my plasmoid,
but I'm having a little trouble with it.
I would like to read output from console command, (eg. ps -e or la). I can
run command with: plasmoid.runCommand, but how can I read output from it?

Thanks in advance.

P.S. How can I join mailing list?
-- 
Nikola Milenković
electroni...@gmail.com
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Reading command output from plasmoid

2010-02-21 Thread Aaron J. Seigo
On February 21, 2010, Nikola Milenković wrote:
> Hi,
> 
> i would like to join the Jam Session, and I have an idea for my plasmoid,
> but I'm having a little trouble with it.
> I would like to read output from console command, (eg. ps -e or la). I can
> run command with: plasmoid.runCommand, but how can I read output from it?

this is provided by the exec DataEngine.

this really should be provided as a Plasma::Service plugin; maybe i'll get to 
that while i'm here at tokamak.

> P.S. How can I join mailing list?

https://mail.kde.org/mailman/listinfo/plasma-devel

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Reading command output from plasmoid

2010-02-21 Thread David Baron
On Sunday 21 February 2010 18:31:53 Aaron J. Seigo wrote:
> On February 21, 2010, Nikola Milenković wrote:
> > Hi,
> >
> > i would like to join the Jam Session, and I have an idea for my plasmoid,
> > but I'm having a little trouble with it.
> > I would like to read output from console command, (eg. ps -e or la). I
> > can run command with: plasmoid.runCommand, but how can I read output from
> > it?
> 
> this is provided by the exec DataEngine.
> 
> this really should be provided as a Plasma::Service plugin; maybe i'll get
>  to that while i'm here at tokamak.

Needs be done asynchronously in a background thread unless one knows it will 
always be instantaneous.

Qt4 classes are available, probably the backend used by the above. Dataengine 
will be asynch if used properly. I might try it with qt4 stuff.
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel