Re: My build of Kate seems not use my build of KIO

Alain Laporte <[email protected]>
Newsgroups gmane.comp.kde.devel.kwrite
Message-ID <CAKscb0TCQqR7Cp8eusjgLCt5oJFqN86SRA=D2KJ903FNwM-KWQ@mail.gmail.com>
I must enable LD_LIBRARY_PATH modification in the prefix.sh file to force
it to use the altered KIO:

# LD_LIBRARY_PATH only needed if you are building without rpath
export
LD_LIBRARY_PATH=/home/alaporte/projects/kde/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH

And after that, my modification is taken into account. It's strange because
ldd point on the right library:

alaporte@alaporte-ThinkPad-T480:[16:29:36]:~/projects/kde/src/kde/applications/kate
(display-python-inner-function)$ ldd
/home/alaporte/projects/kde/usr/bin/kate | grep KIO
       libKF5KIOWidgets.so.5 =>
/home/alaporte/projects/kde/usr/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
(0x00007f4aa1208000)
       libKF5KIOGui.so.5 =>
/home/alaporte/projects/kde/usr/lib/x86_64-linux-gnu/libKF5KIOGui.so.5
(0x00007f4aa1191000)
       libKF5KIOCore.so.5 =>
/home/alaporte/projects/kde/usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
(0x00007f4aa0f46000)

Kate build doesn't use rpath?

Alain Laporte.


Le mer. 15 juin 2022 à 12:38, Christoph Cullmann (cullmann.io) <
[email protected]> a écrit :

> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.