Diffusion KIO fcf4529f62e1

Adding support for mounting KIOFuse URLs for applications that don't use KIO

Authored by feverfew on Dec 16 2019, 1:10 PM.

Description

Adding support for mounting KIOFuse URLs for applications that don't use KIO

Summary:
This patch is required to provide seamless integration with KIOFuse and KIO.

The patch attempts to convert URLs that applications will not understand
natively into local paths based on a KIOFuse mount. If successful, the URL
passed to the application is changed to its location within the KIOFuse mount.
If it is not successful, the URL is not changed.

If KIOFuse is not installed, then kioexec is simply used.

FEATURE: 75324
BUG: 398216
BUG: 330192
CCBUG: 398446
FIXED-IN: 5.66

Test Plan:
Compile KIO with this patch.

Build and install KIOFuse (follow instructions in README): https://invent.kde.org/kde/kio-fuse

Once KIO is built, Dolphin is built with this newly built KIO, and kio-fuse is built,
one should start the kio-fuse process.

The easiest way to test this is via Dolphin (that is built with this patch): dbus-launch dolphin.

Once you have done the above one can simply browse to any non-local location in
say, Dolphin, where upon opening a URL in a non-KIO enabled app, it should open
in the KIOFuse mount, except for MTP/Gdrive URLs - those will use KIOExec.
Conversely, KIO URLs in KIO-enabled apps should not use KIOFuse.

Reviewers: fvogt, davidedmundson, dfaure, ngraham

Reviewed By: dfaure, ngraham

Subscribers: alexde, broulik, sitter, davidedmundson, kde-frameworks-devel, ngraham

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D23384

jieiku added a subscriber: jieiku.EditedMar 8 2022, 5:53 AM

What versions of what software do I need to have for this to be in affect?

It is now 2022. My OS is Kubuntu 21.10 and I am using Atom Text Editor to save txt files that I opened from a Dolphin SFTP share.

The title bar of atom shows ~/.cache/kioexec/krun/165863_0

When I press ctrl+s to save my changes to the file I am presented with the dreaded popup boxes.

The file has been modified, Do you want to upload the changes? I can press Upload or Do Not Upload.

I click Upload, it then says File Already Exists, do I want to Rename, Overwrite, or Cancel.

I wish I knew of a way to resolve this NOW! its such a pain while web developing to constantly have to deal with these pop ups.

I love KDE been using Kubuntu exclusively for 10 years, hope I can figure this out, really don't want to switch to gnome.

EDIT: I found a solution, instead of browsing sftp with dolphin I used sshfs, with sshfs atom can save the file as if it is a local file, no more pop-ups.