My build of Kate seems not use my build of KIO

Christoph Cullmann (cullmann.io) christoph at cullmann.io
Wed Jun 15 11:38:36 BST 2022


On 2022-06-15 08:19, Alain Laporte wrote:
> Hi,
> 
> I have try to fix the issue
> https://bugs.kde.org/show_bug.cgi?id=446019 with that MR =>
> https://invent.kde.org/frameworks/kio/-/merge_requests/866 and it
> works fine on Dolphin. But for Kate, it doesn't work and I don't know
> why.
> 
> After checking the code of the FileBrowser plugin I see the
> KDirOperator class is well used, and internally it uses the
> KNewFileMenu. The list of MIME types is well passed to
> setNewFileMenuSupportedMimeTypes() =>
> https://invent.kde.org/utilities/kate/-/blob/master/addons/filebrowser/katefilebrowser.cpp#L80.
> And when I remove the text/plain MIME type I can't create a new file.
> 
> But I don't understand why when I rebuild KIO and after Kate, I don't
> see my debug logs in KIO. I suspect the KIO project is not used and I
> use the KIO from my system. But I don't understand why it works on
> Dolphin and not on Kate.
> 
> See above, commands used to build KIO and Kate and start Kate:
> 
> desrc-build --no-include-dependencies --no-src kio && kdesrc-build
> --no-include-dependencies --no-src kate && kde_app_src kate
> The script kde_app_src is in Bash and contains:
> 
> source ~/projects/kde/build/kde/applications/$1/prefix.sh
> $1
> 
> Do you have an idea?
> Thanks,

Hi,

from your description, this should work as intended, if the build
contains your altered KIO.

Kate does nothing special there, just the usual linking with it
and doesn't do any special handling to load e.g. the io slaves in
a different way.

Perhaps check with ldd if the kate binary really links to the proper 
stuff
and if the values of the QT_PLUGIN_PATH things match the expectations.

Greetings
Christoph

> 
> Alain Laporte.

-- 
Ignorance is bliss...
https://cullmann.io | https://kate-editor.org


More information about the KWrite-Devel mailing list