KImgIO plugins in plugins/imageformat (Re: kdelibs4_snapshot and KConfig)

Simon Hausmann hausmann at kde.org
Fri Jan 6 14:37:24 GMT 2006


On Friday 06 January 2006 15:26, Lubos Lunak wrote:
> On Friday 06 January 2006 14:30, Nicolas Goutte wrote:
> > On Friday 06 January 2006 12:49, David Faure wrote:
> > > On Friday 06 January 2006 11:33, Szombathelyi Gy├Ârgy wrote:
> > > > Any chance to get this in:
> > > >
> > > > http://lists.kde.org/?l=kde-core-devel&m=113620307629326&w=2
> > >
> > > [KImgIO plugins in plugins/imageformat]
> > >
> > > The patch looks good (assuming you tested that Qt loads them ;)
> > > but does this mean that the *.kimgio files are not needed anymore, nor
> > > the code in kio/kio/kimageio* ?
> >
> > If I remember well, that was wanted anyway.
> >
> > If I really remember well, somebody had even done a patch for converting
> > KImgIO to QImageIO in Qt3/KDE3. Unfortunately I do not know where the
> > patch was "parked", as it was too big for a mailing list. (At that time,
> > I had not the reflex to ask to open a bug report and to ask to put the
> > patch there.)
>
>  I admit I haven't checked this in Qt4 yet, but has image plugin loading
> improved there, or would this still mean every KDE application would
> immediately load every single image plugin and dependencies as soon as it
> tries to load first PNG?

Not anymore fortunately. All plugins are loaded once per user, but then the 
information about what interfaces the plugin exports are stored in 
~/.config/Trolltech.conf. The cache entry for each plugin is invalidated as 
the last modification time of the plugin changes. So unless there's a bug the 
application should in the common case only load those plugins that it really 
needs.

Simon




More information about the kde-core-devel mailing list