can buttons know what happens to programs they launch?

Hans Chen hanswchen at gmail.com
Tue Feb 7 20:12:59 UTC 2012


You may want to take a look at KProcess:
http://api.kde.org/4.x-api/kdelibs-apidocs/kdecore/html/classKProcess.html
For example, here's a Python plasmoid that uses it:
http://kde-look.org/content/show.php/Redshift+plasmoid?content=148737

With best regards,
Hans Chen

On Tue, Feb 7, 2012 at 20:06, Eric Mesa <ericsbinaryworld at gmail.com> wrote:

> In my plasmoid I have a button that launches a python program with certain
> arguments.  Is it possible for the button to know whether or not the
> application exited with an error?  And if so, is it possible to have it
> change colour based on that?
> --
> Eric Mesa
> http://about.me/ericmesa
> http://www.ericsbinaryworld.com
>
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120207/20e328b3/attachment.html>


More information about the Plasma-devel mailing list