Plugins depending on the standardoutputview with no Ui
Julian Bäume
julian at svg4all.de
Wed Mar 23 10:51:22 UTC 2011
Am Mittwoch, 23. März 2011, 11:42:13 schrieb Andreas Pakulat:
> On 23.03.11 11:18:18, Julian Bäume wrote:
> > Hi,
> >
> > Am Mittwoch, 23. März 2011, 09:45:22 schrieb Andreas Pakulat:
> > > PS: The KDevPlatform codebase has not been written with non-gui apps in
> > > mind, hence you can always run into code-paths where suddenly ui is
> > > needed. As the no-ui mode usually is used without KApplication or at
> > > least without X11 connection, that means your app will crash at that
> > > point.
> >
> > What’s the use for KDevelop::Core::NoUi then?
>
> To get kdevplatform loaded into an app that uses KApplication without X11
> connection (or QCoreApplication+KComponentData as the tests do). That
> however is a hack and you've to be rather careful what you do with the
> kdevplatform libs as not all code-paths have been tested or examined for
> necessity of this flag to disable certain things. In particular when errors
> occur the code may still try to show message-boxes or what-not to the user.
>
> That flag is simply a hack to satisfy the needs of things like duchainify
> and other similar tools that don't want a GUI app, but the more its being
> used the more you increase the potential to run into cases as with the
> original post in this thread.
>
> To really support non-gui apps the kdevplatform code needs to be split
> into gui and non-gui libs. And similarly some of the plugins would need to
> be split into two. Then non-gui apps can really make sure that no gui-code
> is being run when they only use the non-gui parts of kdevplatform+plugins.
>
> Andreas
thanks for clarification. I was just curious, because I remember using this
for exactly the case you mention (tests) but I had problems with it. So I
implemented the tests with KDevelop::Core::Default anyway. It’s a bit slower,
but works without ugly hacks. ;)
bye then
julian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110323/3b84b3ad/attachment.sig>
More information about the KDevelop-devel
mailing list