<div class="gmail_quote">On Wed, Mar 23, 2011 at 11:42 AM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div></div><div class="h5">On 23.03.11 11:18:18, Julian Bäume wrote:<br>
> Hi,<br>
><br>
> Am Mittwoch, 23. März 2011, 09:45:22 schrieb Andreas Pakulat:<br>
> > PS: The KDevPlatform codebase has not been written with non-gui apps in<br>
> > mind, hence you can always run into code-paths where suddenly ui is<br>
> > needed. As the no-ui mode usually is used without KApplication or at<br>
> > least without X11 connection, that means your app will crash at that<br>
> > point.<br>
><br>
> What’s the use for KDevelop::Core::NoUi then?<br>
<br>
</div></div>To get kdevplatform loaded into an app that uses KApplication without X11<br>
connection (or QCoreApplication+KComponentData as the tests do). That<br>
however is a hack and you've to be rather careful what you do with the<br>
kdevplatform libs as not all code-paths have been tested or examined for<br>
necessity of this flag to disable certain things. In particular when errors<br>
occur the code may still try to show message-boxes or what-not to the user.<br>
<br>
That flag is simply a hack to satisfy the needs of things like duchainify<br>
and other similar tools that don't want a GUI app, but the more its being<br>
used the more you increase the potential to run into cases as with the<br>
original post in this thread.<br>
<br>
To really support non-gui apps the kdevplatform code needs to be split<br>
into gui and non-gui libs. And similarly some of the plugins would need to<br>
be split into two. Then non-gui apps can really make sure that no gui-code<br>
is being run when they only use the non-gui parts of kdevplatform+plugins.<br>
<div><div></div><div class="h5"><br>
Andreas<br>
<br>
<br>
--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br><div>We still can have the application running just fine if we use KApplication, I don't think such a redesign is needed. The shell knows if there's Ui or not, in plugins, we just have to believe if they say they use Ui or not.</div>

<div><br></div><div>Aleix</div>