KDialog Slow With Network Mounts

When I open KDialog (the KDE system file-picker) in any application, i.e. Firefox, MPV, saving files, opening files, etc. It takes a considerably longer time to actually open the KDialog window when I have a network mount
I am running NixOS, on the latest stable channel
KDialog Version: 25.04.02

I have a webdav mount (in my local network) which I mount with rclone & a systemD (root) service
This is what the systemD service looks like (just extra content, not directly relevant to my issue)

    after = [ "network-online.target" ];
rclone 
          --vfs-cache-mode writes \
          --ignore-checksum \
mount {mywebdavmount}: /mymountpoint

The mount is mounted at the root of my filesystem
KDialog seems to pick up the mount without any manual intervention by showing it under the “network” places

I ran the command time kdialog --getopenurl / do demonstrate the delay:
without mount:

Executed in  864.65 millis    fish           external
   usr time  251.88 millis    0.12 millis  251.76 millis
   sys time  170.93 millis    1.03 millis  169.90 millis

with mount:

Executed in    2.27 secs      fish           external
   usr time  328.74 millis    1.50 millis  327.24 millis
   sys time  199.70 millis    0.14 millis  199.56 millis

FYI, since im running the command directly via the command line, it is a lot quicker, when opening it in applications it takes upwards of 10 seconds, it even ends up taking a few min’s sometimes and all the file dialogs open in 1 quick burst

TLDR: How can I get KDialog to ignore my rclone network mount so that it doesn’t do any processing on it (therefore removing the startup delay)

FYI, Regular Dolphin works perfectly fine with the mount with a normal startup time

FYI I am also aware of the builtin webdav mounter in dolphin, however it doesn’t interact well when you try to use it in applications (grinds the application to a halt) & the performance is subpar compared to rclone
BUT the issue doesn’t occur when I use the builtin dolphin mounter

FYI x3, I have Baloo completely disabled

Hi - I’m not sure about workarounds, but for what it’s worth, there is a report for this general issue in the KDE Bugtracking System: 293888 – Poor performance with mounted network locations

That’s part of a larger set of bugs being looked at for the broader issue of performance when accessing manually-mounted locations: 504984 – Metabug: performance issues caused by manually-mounted network locations

You can add yourself to the CC list in Bugzilla to get email notifications whenever new comments are added, or the status is changed. Making sure the “Add me to CC list” option is checked, then choosing “Save Changes”, will add you:

1 Like