Bug 440560 - installer problem with kio_krarc.so plugin
Summary: installer problem with kio_krarc.so plugin
Status: RESOLVED FIXED
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: 2.7.2
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-03 15:45 UTC by empyreal
Modified: 2021-08-24 23:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Krusader dependencies (173.28 KB, image/png)
2021-08-24 05:57 UTC, empyreal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description empyreal 2021-08-03 15:45:28 UTC
>> Ctrl + S
File found.
>> Enter
Cursor don't move to found file. Results window just closes.
Please, make cursor move to found file automatically after pressing Enter.

Also consider adding very convenient function as "Overwrite all older" or "Update", so while (F5) copying users have option to overwrite older file versions skipping unchanged files.
Comment 1 Toni Asensi Esteve 2021-08-07 15:47:00 UTC
Hello,

> [...] while (F5) copying users have option to overwrite older file versions [...]
Is that a duplicate of https://bugs.kde.org/show_bug.cgi?id=434538 ?

> [...] Cursor don't move to found file. Results window just closes.
> Please, make cursor move to found file automatically after pressing Enter. [...]             
Is that a duplicate of https://bugs.kde.org/show_bug.cgi?id=401433 ?

It seems that this problem doesn't happen using the git version of Krusader (maybe because https://phabricator.kde.org/D26334 was applied). If you can follow the steps of
    https://commits.kde.org/krusader?path=INSTALL
then you can build the git version of Krusader, use its latest features, etc. 
If you have been able to do it, is your problem solved?
Comment 2 empyreal 2021-08-07 18:30:40 UTC
Thank you very much!!!
Krusader was installed from official repository. Removed it and installed Krusader from git, as you advised. Now search works as it should: cursor moves to found file.

But there are other minor issues or preferences…

1) After moving to found file, search window remains open as separate application window. 
Wouldn't be better autoclose it after moving to found file? Open Search Window would have logic if user could return to it by Alt + Tab at least, but this do not work that way. I close it with Ctrl + S and Esc.

2) When Found 0 matches, it's no use to move to Results Tab. It's better stay on General Tab in active "Search for:" box to make necessary corrections. Just make "File Name" change into message "Found 0 matches" when nothing found.

3) My proposal is not duplicate of https://bugs.kde.org/show_bug.cgi?id=434538 He wants to choose necessary options in first Window after pressing F5 without further interruptions.

But I am interested in certain option, for example checkbox "Update" or "Overwrite older files". Most of the time we do not need overwrite all files, but only certain files. Option "Update" or "Overwrite older files" is very convenient and saves time. We have such option in terminal - cp -u, --update copy only when the SOURCE file is newer than the destination file or when the destination file is missing

This option "Update" or "Overwrite older files" may be put in "Folder already exists" window making 2 steps for overwriting existing folder with existing files instead of 3 steps. Now we have such situation: 1) Press F5 - Path. 2) Then press Enter and if folder exists choose Write Into. 3) Then press Enter and choose Overwrite files.
Comment 3 empyreal 2021-08-07 21:42:35 UTC
Looks like bug in installer. Could not open zip archives with Krusader. kio_krarc.so was installed in following folder:
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_krarc.so 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
Solved problem by COPYING
sudo cp kio_iso.so kio_krarc.so /usr/lib/x86_64-linux-gnu/qt5/plugins

Install the project... 
-- Install configuration: "Debug" 
-- Installing: /usr/bin/krusader 
-- Installing: /usr/share/applications/org.kde.krusader.desktop 
-- Installing: /usr/share/kxmlgui5/krusader/krusaderui.rc 
-- Installing: /usr/share/kxmlgui5/krusader/krusaderlisterui.rc 
-- Installing: /usr/share/kxmlgui5/krusader/krviewer.rc 
-- Installing: /usr/share/krusader/midnight_commander.color 
-- Installing: /usr/share/krusader/total_commander.color 
-- Installing: /usr/share/krusader/total_commander.keymap 
-- Installing: /usr/share/krusader/total_commander.keymap.info 
-- Installing: /usr/share/krusader/useraction_examples.xml 
-- Installing: /usr/share/krusader/layout.xml 
-- Installing: /usr/share/krusader/splash.png 
-- Installing: /usr/share/metainfo/org.kde.krusader.appdata.xml 
-- Installing: /usr/share/icons/hicolor/16x16/apps/krusader_blue.png 
-- Installing: /usr/share/icons/hicolor/16x16/apps/krusader_red.png 
-- Installing: /usr/share/icons/hicolor/16x16/apps/krusader_root.png 
-- Installing: /usr/share/icons/hicolor/16x16/apps/krusader_user.png 
-- Installing: /usr/share/icons/hicolor/22x22/apps/krusader_blue.png 
-- Installing: /usr/share/icons/hicolor/22x22/apps/krusader_red.png 
-- Installing: /usr/share/icons/hicolor/22x22/apps/krusader_root.png 
-- Installing: /usr/share/icons/hicolor/22x22/apps/krusader_shield.png 
-- Installing: /usr/share/icons/hicolor/22x22/apps/krusader_user.png 
-- Installing: /usr/share/icons/hicolor/32x32/apps/krusader_blue.png 
-- Installing: /usr/share/icons/hicolor/32x32/apps/krusader_red.png 
-- Installing: /usr/share/icons/hicolor/32x32/apps/krusader_root.png 
-- Installing: /usr/share/icons/hicolor/32x32/apps/krusader_shield.png 
-- Installing: /usr/share/icons/hicolor/32x32/apps/krusader_user.png 
-- Installing: /usr/share/icons/hicolor/48x48/apps/krusader_blue.png 
-- Installing: /usr/share/icons/hicolor/48x48/apps/krusader_red.png 
-- Installing: /usr/share/icons/hicolor/48x48/apps/krusader_root.png 
-- Installing: /usr/share/icons/hicolor/48x48/apps/krusader_shield.png 
-- Installing: /usr/share/icons/hicolor/48x48/apps/krusader_user.png 
-- Installing: /usr/share/icons/hicolor/64x64/apps/krusader_blue.png 
-- Installing: /usr/share/icons/hicolor/64x64/apps/krusader_red.png 
-- Installing: /usr/share/icons/hicolor/64x64/apps/krusader_root.png 
-- Installing: /usr/share/icons/hicolor/64x64/apps/krusader_shield.png 
-- Installing: /usr/share/icons/hicolor/64x64/apps/krusader_user.png 
-- Installing: /usr/share/icons/hicolor/128x128/apps/krusader_root.png 
-- Installing: /usr/share/icons/hicolor/128x128/apps/krusader_user.png 
-- Installing: /usr/share/krusader/icons/hicolor/16x16/actions/kr_combine.png 
-- Installing: /usr/share/krusader/icons/hicolor/16x16/actions/kr_comparedirs.png 
-- Installing: /usr/share/krusader/icons/hicolor/16x16/actions/kr_diskusage.png 
-- Installing: /usr/share/krusader/icons/hicolor/16x16/actions/kr_mountman.png 
-- Installing: /usr/share/krusader/icons/hicolor/16x16/actions/kr_syncbrowse_off.png 
-- Installing: /usr/share/krusader/icons/hicolor/16x16/actions/kr_syncbrowse_on.png 
-- Installing: /usr/share/krusader/icons/hicolor/16x16/actions/kr_unselect.png 
-- Installing: /usr/share/krusader/icons/hicolor/22x22/actions/kr_combine.png 
-- Installing: /usr/share/krusader/icons/hicolor/22x22/actions/kr_comparedirs.png 
-- Installing: /usr/share/krusader/icons/hicolor/22x22/actions/kr_diskusage.png 
-- Installing: /usr/share/krusader/icons/hicolor/22x22/actions/kr_mountman.png 
-- Installing: /usr/share/krusader/icons/hicolor/22x22/actions/kr_unselect.png 
-- Installing: /usr/share/krusader/icons/hicolor/32x32/actions/kr_combine.png 
-- Installing: /usr/share/krusader/icons/hicolor/32x32/actions/kr_comparedirs.png 
-- Installing: /usr/share/krusader/icons/hicolor/32x32/actions/kr_diskusage.png 
-- Installing: /usr/share/krusader/icons/hicolor/32x32/actions/kr_mountman.png 
-- Installing: /usr/share/krusader/icons/hicolor/32x32/actions/kr_unselect.png 
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_krarc.so 
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so 
-- Installing: /etc/xdg/kio_isorc 
-- Installing: /usr/share/doc/HTML/en/krusader/index.cache.bz2 
-- Installing: /usr/share/doc/HTML/en/krusader/advanced-functions.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/archives.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/basic-functions.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/bookmarks.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/checksum.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/compare.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/configuration-files.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/credits-and-license.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/diskusage.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/editors-note.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/faq.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/features.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/glossary.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/help.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/index.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/introduction.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/keyboard-commands.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/konfigurator.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/krusader-tools.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/locate.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/menu-commands.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/mount.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/mouse-commands.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/occupied-space.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/profiles.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/release-overview.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/remote-connections.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/search.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/splitter.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/synchronizer.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/user-interface.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/useraction-xml.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/useractions.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/vfs.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/viewer-editor.docbook 
-- Installing: /usr/share/doc/HTML/en/krusader/Icon-edit-delete.png 
-- Installing: /usr/share/doc/HTML/en/krusader/actionman.png 
-- Installing: /usr/share/doc/HTML/en/krusader/bookmanadd.png 
-- Installing: /usr/share/doc/HTML/en/krusader/bookmanedit.png 
-- Installing: /usr/share/doc/HTML/en/krusader/cmdline.png 
-- Installing: /usr/share/doc/HTML/en/krusader/copyjob.png 
-- Installing: /usr/share/doc/HTML/en/krusader/fnkeys.png 
-- Installing: /usr/share/doc/HTML/en/krusader/kgstartup.png 
-- Installing: /usr/share/doc/HTML/en/krusader/krusader1.png 
-- Installing: /usr/share/doc/HTML/en/krusader/listpanel.png 
-- Installing: /usr/share/doc/HTML/en/krusader/mainwindow.png 
-- Installing: /usr/share/doc/HTML/en/krusader/mountman.png 
-- Installing: /usr/share/doc/HTML/en/krusader/search_advanced.png 
-- Installing: /usr/share/doc/HTML/en/krusader/search_general.png 
-- Installing: /usr/share/doc/HTML/en/krusader/syncdir.png 
-- Installing: /usr/share/doc/HTML/en/krusader/tabbed_browsing.png 
-- Installing: /usr/share/doc/HTML/en/krusader/terminalEmu.png 
-- Installing: /usr/share/doc/HTML/en/krusader/toolbar.png 
-- Installing: /usr/share/man/man1/krusader.1
Comment 4 Toni Asensi Esteve 2021-08-14 15:53:42 UTC
Thanks for reporting (although the correct way to report a new issue is in a new bug report :-)).

> Looks like bug in installer. Could not open zip archives with Krusader. kio_krarc.so was installed in following folder:
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_krarc.so 
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
> Solved problem by COPYING
> sudo cp kio_iso.so kio_krarc.so /usr/lib/x86_64-linux-gnu/qt5/plugins
The same also happens to me (using Kubuntu 20.04 in a virtual machine) after:
    - executing `sudo make uninstall`;
    - deleting all the `kio_iso.so` and `kio_krarc.so` files that still could exist (in some cases: files like `/usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so` and `/usr/lib/x86_64-linux-gnu/qt5/plugins/kio_iso.so` still exist because a prior `sudo make uninstall` copied them there);
    - executing `sudo make install`;
    - executing Krusader.

The problem happens since that commit:
    - Embed JSON metadata in KIOSlaves 
        https://invent.kde.org/utilities/krusader/-/commit/0211b4574abba0e1fc38590abaa18bdb6271194b
which in turn is related to:
    - Convert protocol files to JSON 
        https://invent.kde.org/utilities/krusader/-/commit/7fe59eed43eb5a43d0d87ad812b79c76a4cb5dcf                        
    - Remove obsolete .protocol files 
        https://invent.kde.org/utilities/krusader/-/commit/4670e1c2ea8ace4ab95d2183a9b590cd50c6be52                    
therefore, adding Alexander Lohnau to the "CC list" so that he may help :-) with this issue.
Comment 5 Alexander Lohnau 2021-08-15 05:43:29 UTC
Works for me, not sure what is wrong here since KIO picks up the correct files.

Is there any chance you have the iso.protocol or krarc.protocol files lying around on disk anywhere?
Comment 6 empyreal 2021-08-15 06:06:23 UTC
> Is there any chance you have the iso.protocol or krarc.protocol files lying
> around on disk anywhere?
Wrong here is that user needs to copy files manually, because installer puts kio_iso.so and kio_krarc.so in following folder only
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/

It is designed that kio_iso.so and kio_krarc.so should be in these two folders
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/
/usr/lib/x86_64-linux-gnu/qt5/plugins/
If  kio_iso.so and kio_krarc.so are missing in any of these folders, user won't open archives.
Comment 7 Toni Asensi Esteve 2021-08-15 21:13:53 UTC
> Works for me, not sure what is wrong here since KIO picks up the correct files.
> Is there any chance you have the iso.protocol or krarc.protocol files lying 
> around on disk anywhere?
Thanks, Alex, I found those .protocol files in a folder of the aforementioned virtual machine:

    $ find / -name "krarc.protocol" 2>/dev/null
    /usr/share/kservices5/krarc.protocol
    
    $ find / -name "iso.protocol" 2>/dev/null
    /usr/share/kservices5/iso.protocol
        
and I deleted them:        

    $ sudo rm /usr/share/kservices5/krarc.protocol
    $ sudo rm /usr/share/kservices5/iso.protocol

After a `sudo make uninstall`, a reboot and a `sudo make install`: Krusader seems to work well in that virtual machine.

If it may be useful, this is the location of some files that are working:
    $ find /usr -iname "*kio_*.so"
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_kamera.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_obexftp.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_bluetooth.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_fonts.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_msits.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_krarc.so
Comment 8 Alexander Lohnau 2021-08-16 06:04:13 UTC
But I don't fully get why this caused any issues, KIO is supposed to be able to handle the case where there are duplicate results between the protocol files and json metadata.

When testing this locally with the protocol files lying around the correct one is picked up.
Comment 9 empyreal 2021-08-16 09:24:00 UTC
I have following situation on my system:
sudo find -xdev -name "*.protocol" // no krarc.protocol or iso.protocol found
./usr/share/kservices5/activities.protocol
./usr/share/kservices5/man.protocol
./usr/share/kservices5/pnm.protocol
./usr/share/kservices5/smb.protocol
./usr/share/kservices5/tags.protocol
./usr/share/kservices5/filenamesearch.protocol
./usr/share/kservices5/fish.protocol
./usr/share/kservices5/data.protocol
./usr/share/kservices5/recentdocuments.protocol
./usr/share/kservices5/metainfo.protocol
./usr/share/kservices5/ar.protocol
./usr/share/kservices5/nfs.protocol
./usr/share/kservices5/cifs.protocol
./usr/share/kservices5/fonts.protocol
./usr/share/kservices5/lzma.protocol
./usr/share/kservices5/mmsu.protocol
./usr/share/kservices5/network.protocol
./usr/share/kservices5/camera.protocol
./usr/share/kservices5/mtp.protocol
./usr/share/kservices5/tar.protocol
./usr/share/kservices5/bzip.protocol
./usr/share/kservices5/settings.protocol
./usr/share/kservices5/desktop.protocol
./usr/share/kservices5/info.protocol
./usr/share/kservices5/sftp.protocol
./usr/share/kservices5/bookmarks.protocol
./usr/share/kservices5/programs.protocol
./usr/share/kservices5/audiocd.protocol
./usr/share/kservices5/obexftp.protocol
./usr/share/kservices5/xz.protocol
./usr/share/kservices5/about.protocol
./usr/share/kservices5/rtsp.protocol
./usr/share/kservices5/gzip.protocol
./usr/share/kservices5/ms-its.protocol
./usr/share/kservices5/thumbnail.protocol
./usr/share/kservices5/mmst.protocol
./usr/share/kservices5/rtspu.protocol
./usr/share/kservices5/zip.protocol
./usr/share/kservices5/rtspt.protocol
./usr/share/kservices5/bzip2.protocol
./usr/share/kservices5/applications.protocol
./usr/share/kservices5/videodvd.protocol
./usr/share/kservices5/timeline.protocol
./usr/share/kservices5/bluetooth.protocol
./usr/share/kservices5/baloosearch.protocol
./usr/share/kservices5/mms.protocol

---------------------------------

sudo find -xdev -name "*kio_*.so"
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_fonts.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_kamera.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_iso.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_obexftp.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_bluetooth.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_msits.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_krarc.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so

---------------------------------

Again I deleted ./usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_krarc.so and CAN view zip archives. Tried with reboot.

But when I deleted ./usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so i CAN'T view iso files. Tried with reboot. Unable to create io-slave. klauncher said: Could not find the '/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so' plugin.
Comment 10 empyreal 2021-08-17 18:11:57 UTC
I am not a developer, so my input is very limited. Lot's of things I simply don't understand. faq in krusader clearly says that kio_krarc.so should be installed in /qt5/plugins. Why Krusader developers make install into another folder?
I think that somehow paths are messed up and need edit.

We have "kf5/" path in following files:

1.1 /home/user/krusader/krusader/Panel/panelcontextmenu.cpp
QVector<KPluginMetaData> jsonPlugins = KPluginLoader::findPlugins("kf5/kfileitemaction",

1.2 /home/user/krusader/CMakeLists.txt
# For security reasons, absolute kdesu path is set at build time and is not
# configurable.
if(NOT KDESU_PATH)
    if(EXISTS "${KDE_INSTALL_FULL_LIBDIR}/kf5/kdesu")
      # Used by Arch distribution
      set(KDESU_PATH "${KDE_INSTALL_FULL_LIBDIR}/kf5/kdesu")
    else()
      set(KDESU_PATH "${KDE_INSTALL_FULL_LIBEXECDIR_KF5}/kdesu")
    endif()
endif()

1.3 /home/user/krusader/iso/CMakeLists.txt
kcoreaddons_add_plugin(kio_iso SOURCES ${kio_iso_PART_SRCS} ${libisofs_SRCS} INSTALL_NAMESPACE "kf5/kio")

1.4 /home/user/krusader/krArc/CMakeLists.txt
kcoreaddons_add_plugin(kio_krarc SOURCES ${kio_krarc_PART_SRCS} INSTALL_NAMESPACE "kf5/kio")

1.5 /home/user/krusader/iso/iso.json
"exec": "kf5/kio/kio_iso",

1.6 /home/user/krusader/krArc/krarc.json
"exec": "kf5/kio/kio_krarc",
Comment 11 empyreal 2021-08-17 19:37:36 UTC
Also consider adding "Ctrl + Shift + ," as default shortcut to open Konfigurator.
Of course user can add it manually, as I did, but it's no good =)
Comment 12 empyreal 2021-08-18 21:15:09 UTC
I reinstalled Krusader on Kubuntu 21.04. Ctrs + S Search window works better on 21.04. Can be easily switched by Alt + Tab. I take my words back =)

I changed files like this:
kf5/kfileitemaction => kfileitemaction
/kf5/kdesu => /kdesu
/kf5/kdesu => /kdesu
kf5/kio => / --for kio_krarc
kf5/kio => kf5/kio/ --for kio_iso
kf5/kio/kio_iso = >  kf5/kio/kio_iso
kf5/kio/kio_krarc =>  kio_krarc

By the way for compilation I also needed libkf5notifications-dev.
Compiled Krusader and got:
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so

sudo find -xdev -name "kio_*.so"
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_msits.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_fonts.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_bluetooth.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_obexftp.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kio_bup.so
./usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so

No krarc.protocol or iso.protocol found anywhere on system.

Everything works after reboot. Dolphin and Krusader open iso ans zip.
Looks like global design is like that 
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so

It needs double check and better triple check.
Comment 13 Toni Asensi Esteve 2021-08-21 18:19:38 UTC
Hello,

> I am not a developer, so my input is very limited. Lot's of things I simply don't understand. 
> faq in krusader clearly says that kio_krarc.so should be installed in /qt5/plugins
The git version of Krusader is not the official one :-) so that FAQ must be talking about the official one.

> By the way for compilation I also needed libkf5notifications-dev.
Thanks for reporting (although the correct way to report a new issue is in a new bug report :-) to avoid growing problems). A merge request has been registered on invent.kde.org/utilities/krusader/-/merge_requests/65, where I used "empyreal@ukr" instead of your whole email address in order to avoid spammer software getting your real address :-)

I've started a new virtual machine with Kubuntu 21.04, executed `git clone` [...], `cmake` [...], `make`, `sudo make install`, and Krusader is able to enter iso and zip and 7zip files, etc.

There, I executed:
    $ find / -xdev -name "kdesu" 2>/dev/null
    /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu
    /usr/share/doc/HTML/ca/kdesu
    /usr/share/doc/HTML/sr/kdesu
    /usr/share/doc/HTML/id/kdesu
    /usr/share/doc/HTML/pt_BR/kdesu
    /usr/share/doc/HTML/ru/kdesu
    /usr/share/doc/HTML/sr@latin/kdesu
    /usr/share/doc/HTML/uk/kdesu
    /usr/share/doc/HTML/en/kdesu
    /usr/share/doc/HTML/et/kdesu
    /usr/share/doc/HTML/es/kdesu
    /usr/share/doc/HTML/nl/kdesu
    /usr/share/doc/HTML/pt/kdesu
    /usr/share/doc/HTML/it/kdesu
    /usr/share/doc/HTML/de/kdesu
    /usr/share/doc/HTML/sv/kdesu
    /usr/share/doc/HTML/fr/kdesu
    
    $ find / -xdev -name "kio_*.so" 2>/dev/null
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_bup.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_bluetooth.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_fonts.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_msits.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_kamera.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_krarc.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
    /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_obexftp.so
    /home/user/krusader-build/krArc/kio_krarc.so
    /home/user/krusader-build/iso/kio_iso.so
    
    $ find / -xdev -name "krarc.protocol" 2>/dev/null
    $ find / -xdev -name "iso.protocol" 2>/dev/null

and every file of that list to be in its correct place, being consistent with the list of 'We have "kf5/" path in following files:' that you wrote.

> Also consider adding "Ctrl + Shift + ," as default shortcut to open Konfigurator.
> Of course user can add it manually, as I did, but it's no good =)
That's a good hint, would you start a new bug report and copy that information there?

> I reinstalled Krusader on Kubuntu 21.04. Ctrs + S Search window works better on 21.04. Can be easily switched 
> by Alt + Tab. I take my words back =)
Thanks for reporting about it, I'm very glad that it works better!
Comment 14 empyreal 2021-08-21 20:08:25 UTC
I am new to all that development, so sorry… I am figuring out the workflow…
I test everything on my system. Do not use virtual machine right now.
Crashed Kubuntu 20.04 and installed Kubuntu 21.04.

My problem on both versions is exactly with the following:
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_krarc.so
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so

On Kubuntu 20.04 I needed:
/usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
else I can’t open zip.

On  Kubuntu 21.04 I need the same:
/usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so

I made commits on github, so you can download my code https://github.com/empyrea1/krusader
Try it on virtual machine and check whether krusader will open iso and zip.
Plugins should be installed like this:
/usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
Comment 15 empyreal 2021-08-22 13:08:47 UTC
Fresh Kubuntu 20.04 on VM
cmake ..
make -j6
sudo make install 

1) Installed master branch.
It installed plugins into
./usr/lib/x86_64-linux-gnu/kf5/kio/kio_krarc.so
./usr/lib/x86_64-linux-gnu/kf5/kio/kio_iso.so
Unfortunately I didn't save txt, so I don't remember exactly but path was wrong and installer wrote messages concerning path of these plugins.
 
2) Looks like Dolphin and Krusader do not need kio_krarc.so to open zip files. I deleted it and no problems. Is this file now obsolete?

But at first time I had problem actually with zip, not with iso. I needed to copy kio_krarc.so to qt5/plugins. It was reason for posting comment concerning installer. I don't understand anything.

And what happens next:
3) Removed previous install 
Then installed my edits
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_krarc.so
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
zip and iso work

4) Removed previous install
Then installed master branch again
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
zip and iso work

5) Removed previous install
Then installed my edits
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_krarc.so
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
 zip and iso work

No reboots during installs and uninstalls.
Comment 16 empyreal 2021-08-22 15:53:10 UTC
Don’t take into account my previous post. It turned out that I forgot to edit one file in my branch install on git. My branch install exactly same as master now. Actually it does not matter anymore, but installer behavior on Kubuntu 20.04 is strange. Tried to reproduce by reinstalling Kubuntu 20.04 on VM, but everything worked out well:
master install on Kubuntu 20.04 VM
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so

master install on Kubuntu 21.04 VM
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
Comment 17 Alexander Lohnau 2021-08-23 08:19:18 UTC
> Why Krusader developers make install into another folder?
> I think that somehow paths are messed up and need edit.

I need to adjust the text, agreed. But the location of these files does only matter to KIO, which is where they are loaded/queried. API users should only interact with the KProtocolInfo class, which finds those files dynamically.

Inside of Krusader you will find KProtocolInfo::archiveMimetypes, which does exactly that. As far as I can see the paths are nowhere in the code hardcoded.
Comment 18 empyreal 2021-08-23 08:45:42 UTC
Sorry, I forgot to mark it as solved. I faced old problem described in https://docs.kde.org/trunk5/en/krusader/krusader/krusader.pdf [page 111].
Comment 19 Toni Asensi Esteve 2021-08-23 22:49:44 UTC
Hi, empyreal@ukr. I noticed that you wrote 
> cmake ..
> [...]
> sudo make install 

though I wanted to say that in the INSTALL file of Krusader, instead of `cmake ..`, it's seen:
    $ git clone https://invent.kde.org/utilities/krusader
    [...]
    $ mkdir krusader-build
    $ cd krusader-build
    $ cmake ../krusader -DCMAKE_INSTALL_PREFIX=/usr/ -DCMAKE_C_FLAGS="-O2 -fPIC" -DCMAKE_CXX_FLAGS="-O2 -fPIC"
Comment 20 Toni Asensi Esteve 2021-08-23 22:51:37 UTC
> I made commits on github, so you can download my code
> https://github.com/empyrea1/krusader
> Try it on virtual machine and check whether krusader will open iso and zip.
> Plugins should be installed like this:
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so
Using the clean "snapshot" of the Kubuntu 21.04 machine that I mentioned: I used your github code, executed cmake with:
    $ mkdir krusader-build
    $ cd krusader-build
    $ cmake ../krusader -DCMAKE_INSTALL_PREFIX=/usr/ -DCMAKE_C_FLAGS="-O2 -fPIC" -DCMAKE_CXX_FLAGS="-O2 -fPIC"
I tried entering 7z (Krusader shows "servenz:[...]"), iso (Krusader shows "iso:[...]") and zip files (Krusader shows "zip:[...]"), and it worked. Entering rar files didn't work (it was seen "Error: Protocol not supported by Krusader: krarc:/[...]").
Comment 21 empyreal 2021-08-24 05:57:23 UTC
Created attachment 140996 [details]
Krusader dependencies

Toni Asensi Esteve thank you for help, but I now doubt that this thing is worth figuring out. It is made by design that Dolphin and Krusader can open zip archives without krarc. But sometimes happens this https://docs.kde.org/trunk5/en/krusader/krusader/krusader.pdf [page 111]. Davide Gianforte wrote that work is on progress https://phabricator.kde.org/T14518 Maybe this will solve issue once and for all.

I can’t open rar with Dolphin and Krusader, but Ark opens. Dolphin and Krusader message: Could not start process Make sure that the binary is installed properly on your system..
I copied kio_krarc.so to kf5/kio – no result.
Concerning rar also see screenshot. Dependency is needed?

Concerning install:
Are -DCMAKE_INSTALL_PREFIX=/usr/ -DCMAKE_C_FLAGS="-O2 -fPIC" -DCMAKE_CXX_FLAGS="-O2 -fPIC"
really necessary?
cd krusader-master
mkdir install && cd install
cmake ..
make -j6
sudo make install
/usr/lib/x86_64-linux-gnu/qt5/plugins/kio_krarc.so
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_iso.so

Concerning paths:
1.1 /home/user/krusader/krusader/Panel/panelcontextmenu.cpp
 KPluginLoader::findPlugins("kf5/kfileitemaction"

THIS SHOULD NOT BE CHANGED! RIGHT CLICK PLUGINS!

1.2 /home/user/krusader/CMakeLists.txt
# For security reasons, absolute kdesu path is set at build time and is not
# configurable.
if(NOT KDESU_PATH)
    if(EXISTS "${KDE_INSTALL_FULL_LIBDIR}/kf5/kdesu")
      # Used by Arch distribution
      set(KDESU_PATH "${KDE_INSTALL_FULL_LIBDIR}/kf5/kdesu")
    else()
      set(KDESU_PATH "${KDE_INSTALL_FULL_LIBEXECDIR_KF5}/kdesu")
    endif()
endif()

I DIDN’T FIGURE OUT ABOUT THIS PATH SO NOT TO CHANGE!

1.3 /home/user/krusader/iso/CMakeLists.txt
kcoreaddons_add_plugin(kio_iso SOURCES ${kio_iso_PART_SRCS} ${libisofs_SRCS} INSTALL_NAMESPACE "kf5/kio")

THIS IS UNCHANGED CAUSE WE NEED ISO PLUGIN IN THIS FOLDER


1.4 /home/user/krusader/krArc/CMakeLists.txt
kcoreaddons_add_plugin(kio_krarc SOURCES ${kio_krarc_PART_SRCS} INSTALL_NAMESPACE "kf5/kio")

NEED TO BE CHANGED TO INSTALL KRARC INTO QT5/PLUGINS

1.5 /home/user/krusader/iso/iso.json
"exec": "kf5/kio/kio_iso",

LOOKS LIKE DOES NOTHING

1.6 /home/user/krusader/krArc/krarc.json
"exec": "kf5/kio/kio_krarc",
LOOKS LIKE DOES NOTHING
Comment 22 empyreal 2021-08-24 06:11:27 UTC
sudo apt install rar
sudo apt install unrar
And now Dolphin and Krusader open and pack rar.
Comment 23 empyreal 2021-08-24 06:44:18 UTC
https://docs.kde.org/stable5/en/kde-cli-tools/kdesu/kdesu.pdf [page 5]
https://docs.kde.org/trunk5/en/krusader/krusader/krusader.pdf [page 106].
/usr/bin/kdesu
KDESU provides functionality for building GUI front ends for (password asking) console mode programs. kdesu and kdessh use it to interface with su and ssh...
Comment 24 Toni Asensi Esteve 2021-08-24 23:05:00 UTC
> 1) After moving to found file, search window remains open as separate application window. 
> Wouldn't be better autoclose it after moving to found file? 
I find it useful when e.g. it's not clear which of the found files is the one that was being looked for. Other people may write about their cases, too.

> 2) When Found 0 matches, it's no use to move to Results Tab. It's better stay 
> on General Tab in active "Search for:" box to make necessary corrections. Just 
> make "File Name" change into message "Found 0 matches" when nothing found.
Thanks for proposing the idea, would you write about it in a new bug report? (it would be the proper way :-) ).
Comment 25 empyreal 2021-08-24 23:38:35 UTC
I know found separate search window useful too. It's rather preferential. Submitted new  thread about search improvement.