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

<br>With best regards,<br>Hans Chen<br><br><div class="gmail_quote">On Tue, Feb 7, 2012 at 20:06, Eric Mesa <span dir="ltr"><<a href="mailto:ericsbinaryworld@gmail.com">ericsbinaryworld@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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?<span class="HOEnZb"><font color="#888888"><br clear="all">


--<br>Eric Mesa<div><a href="http://about.me/ericmesa" target="_blank">http://about.me/ericmesa</a><br><a href="http://www.ericsbinaryworld.com" target="_blank">http://www.ericsbinaryworld.com</a></div><br>
</font></span><br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></blockquote></div><br>