https://bugs.kde.org/show_bug.cgi?id=457529

--- Comment #24 from Harald Sitter <sit...@kde.org> ---
With how dolphin is currently written there's always going to be N seconds
freeze. Drag creation is a sync operation so we need to synchronously fuse the
urls into the file system with kio-fuse. That does take time. Perhaps too much
time, but ultimately it will always need some time. I know this is crappy but I
don't see a good way out of this. We could stop fusing remote urls, that would
remove most of the freezyness (open() on local files should be plenty fast,
although, still synchronous mind you) perhaps that is the least price to pay
here.

    const auto urls = KUrlMimeData::urlsFromMimeData(data);
    const auto allLocal = std::all_of(urls.cbegin(), urls.cend(), [](const auto
&url) {
        return KProtocolInfo::protocolClass(url.scheme()) ==
QStringLiteral(":local");
    });
    if (allLocal) {
        KUrlMimeData::exportUrlsToPortal(data);
    }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to