In Kubuntu 16.04 LTS Beta 2: Krusader can be compiled and executed but if the user tries to browse a a compressed file named FILE.7Z then in his panel he sees that "Error: The directory FILE.7z" does not exist." and in the command line he can see that error message:
couldn't create slave: "Unable to create io-slave:\nklauncher said: Unknown protocol 'krarc'.\n"
Note: When sudo make install is executed then those files are mentioned:
[...] /usr/lib/x86_64-linux-gnu/plugins/kio_krarc.so /usr/share/kservices5/krarc.protocol /usr/lib/x86_64-linux-gnu/plugins/kio_iso.so /usr/share/kservices5/iso.protocol /etc/xdg/kio_isorc [...]
Thanks!
Update. Date: 2016/04/04
Using Kubuntu 16.04_LTS_beta2, after some attempts to make Krusader browse .zip, .7z, etc. files:
To make Krusader browse .zip, .7z, etc. files, and consequently to avoid the error message that Krusader writes in the command line:
couldn't create slave: "Unable to create io-slave:\nklauncher said: Could not find the 'kio_krarc' plugin.\n"
it can be executed:
sudo mv /usr/lib/x86_64-linux-gnu/plugins/kio_krarc.so /usr/lib/x86_64-linux-gnu/qt5/plugins/
Although now the error message
error() called twice! Please fix the KIO slave.
appears in the command line each time that a .zip, .7z, etc. file is browsed.
To make Krusader browse .iso files, and consequently to avoid the error message that Krusader writes in the command line:
couldn't create slave: "Unable to create io-slave:\nklauncher said: Could not find the 'kio_iso' plugin.\n"
it can be executed:
sudo mv /usr/lib/x86_64-linux-gnu/plugins/kio_iso.so /usr/lib/x86_64-linux-gnu/qt5/plugins/
Although now the error message
KArchive: Null device specified
appears in the command line each time that a .iso file is browsed.
Additional information
In the Kubuntu 16.04_LTS_beta2 command line: that was seen when browsing a .7z file, after this a .zip and after this a .rar one:
$ /usr/bin/krusader 2>/dev/null kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so' from launcher. kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so' error() called twice! Please fix the KIO slave. error() called twice! Please fix the KIO slave. error() called twice! Please fix the KIO slave. kdeinit5: PID 13167 terminated.
and in the Kubuntu 15.04 command line: nothing was seen when browsing a .7z file, after this a .zip and after this a .rar one:
$ /usr/bin/krusader 2>/dev/null
Update. Date: 2016/04/05
Looking for more information I read that "QT_PLUGIN_INSTALL_DIR is deprecated" was explicitly stated, that can also be seen in
http://api.kde.org/ecm/kde-module/KDEInstallDirs.html /usr/share/ECM/kde-modules/KDEInstallDirs.cmake
because QT_PLUGIN_INSTALL_DIR is written there between square brackets.
As seen in http://irclogs.ubuntu.com/2015/05/21/%23kubuntu-devel.html, if it's executed
qtpaths --plugin-dir # // It substitutes the old `kde4-config --qt-plugins`
it shows
/usr/lib/x86_64-linux-gnu/qt5/plugins/
which is the place where a lot of plugins are in Kubuntu 16.04 LTS beta2, for example:
$ ls /usr/lib/x86_64-linux-gnu/qt5/plugins/*kio* /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_kio.so /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_fonts.so /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_about.so /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_kdeconnect.so /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_activities.so /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_obexftp.so /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_applications.so /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_remote.so /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_bluetooth.so
because nowadays some distributions allow having different Qt versions of a plugin.
After some attempts, adding
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
to the cmake command achieves the goal of making kio_krarc.so and kio_iso.so work, without needing the
sudo mv /usr/lib/x86_64-linux-gnu/plugins/kio_krarc.so /usr/lib/x86_64-linux-gnu/qt5/plugins/ sudo mv /usr/lib/x86_64-linux-gnu/plugins/kio_iso.so /usr/lib/x86_64-linux-gnu/qt5/plugins/
commands that were talked about yesterday. Consequently that way Krusader, kio_krarc.so and kio_iso.so get executed correctly (*).
(*) Note: The forementioned error messages like
"error() called twice! Please fix the KIO slave." KArchive: Null device specified
keep appearing, although compressed files seem to be managed suitably.
Several KDE developers are recently seen using
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
and sometimes talking about it in:
- https://www.kde.org/announcements/kde-frameworks-5.5.0.php
- Note: The text "Fix plugin loading with KDE_INSTALL_USE_QT_SYS_PATHS ON" can be found there.
- http://lists-archives.com/kde-devel/33764-plugin-install-question.html
- Note: The main Kdenlive developer and others wrote there.
- https://bugs.kde.org/show_bug.cgi?id=354749#c10
- Note: That solved a problem to Martin Kostolný :-)
- https://github.com/KDE/partitionmanager/blob/master/CMakeLists.txt
- https://lists.debian.org/debian-kde/2015/08/msg00045.html
- https://git.reviewboard.kde.org/r/127169/diff/1#index_header