Oops...<br>I actually stopped usig iostream, but forgot to take off the header :-/.<br>Im applying for a svn account, so hopefully I don&#39;t hafto deal w/ patches :-) .<br><br>I just realized I made a slight error...<br>
Someone should add <span style="font-style: italic;">&amp;&amp; service-&gt;type() == &quot;Application&quot;</span> to the return statement.<br><br><div><span class="gmail_quote">On 2/25/07, <b class="gmail_sendername">Aaron J. Seigo
</b> &lt;<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On February 25, 2007, fonz2591 wrote:
<br>&gt; Here is a patch to allow KRunner to run programs based on the &quot;Name=&quot; tag<br>&gt; in their .desktop files.<br>&gt;<br>&gt; I also included a .desktop file to test this feature.<br>&gt; Place it in KDE4 Directory/share/applications/kde4/ .
<br>&gt; Test it by typing Test App into KRunner.&nbsp;&nbsp;It should launch konsole.<br><br>+#include &lt;iostream&gt;<br>+using namespace std;<br><br>woops =) some debug stuff left ... btw, KDebug is often easier to use with<br>
Qt/KDE objects.<br><br>+&nbsp;&nbsp;&nbsp;&nbsp;// i reccomend not trying &#39;service != 0&#39; (its not worth the errors)<br>+&nbsp;&nbsp;&nbsp;&nbsp;return (service &amp;&amp; service-&gt;name() == term);<br><br>i just looked and kserviceptr does actually have a converstion to bool.
<br><br>so &quot;return service;&quot; should workd, though &quot;return !service.isNull()&quot; might be<br>more readable.<br><br>--<br>Aaron J. Seigo<br>humru othro a kohnu se<br>GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA&nbsp;&nbsp;EE75 D6B7 2EB1 A7F1 DB43
<br><br>Full time KDE developer sponsored by Trolltech (<a href="http://www.trolltech.com">http://www.trolltech.com</a>)<br><br>_______________________________________________<br>Panel-devel mailing list<br><a href="mailto:Panel-devel@kde.org">
Panel-devel@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/panel-devel">https://mail.kde.org/mailman/listinfo/panel-devel</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>// Aaron