D23198: Skip mime type check only for files on network mounts

Kai Uwe Broulik noreply at phabricator.kde.org
Fri Aug 16 12:58:10 BST 2019


broulik added a comment.


  `fileSystemType` calls `statvfs` which might also block, so I don't think this helps.

INLINE COMMENTS

> recentusagemodel.cpp:252
> +        // taken from kfileitem::isSlow
> +        const KFileSystemType::Type fsType = KFileSystemType::fileSystemType(url.path());
> +        if ((fsType == KFileSystemType::Nfs || fsType == KFileSystemType::Smb)) {

`toLocalFile()` instead of `path()`

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D23198

To: meven, #plasma, dfaure
Cc: broulik, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190816/12b79cc0/attachment.html>


More information about the Plasma-devel mailing list