Draft: PreviewJob: Add support for using kio-fuse to access remote files
Currently, PreviewJob
copies the remote file to a local temporary file if a thumbnail plugin requires access to a local file path. This makes it infeasible to preview large files, like videos.
This MR adds support for using kio-fuse to expose local file paths to these plugins, similar to how DesktopExecParser
does it for non-KIO applications.
This MR is very much a first draft and I'd appreciate any and all feedback! I'm very new to KIO and KDE development in general.
- Is this behavior desired in general? (even if my particular implementation isn't great)
- If so:
- Is connecting to kio-fuse via dbus from within kio-widgets okay?
- Currently, the kio-fuse dbus stuff is compiled into kio-core, but is not exposed as part of its public API. This MR currently does
qt_add_dbus_interface
for../core/org.kde.KIOFuse.VFS.xml
in kio-widgets, which definitely isn't the best way to handle this. However, I'm not sure what the best way would be.
Edited by Andrew Gunnerson