]> cloud.milkyroute.net Git - dolphin.git/commit
Don't store view properties on network shares
authorKai Uwe Broulik <kde@privat.broulik.de>
Wed, 28 Aug 2019 07:46:58 +0000 (09:46 +0200)
committerKai Uwe Broulik <kde@privat.broulik.de>
Wed, 28 Aug 2019 07:47:29 +0000 (09:47 +0200)
commitdb717a21c512fafdf90828d71ddeb0f993413872
tree821420fea19d4bd2dc68e545da2e661930d7a567
parentf4a1d1b0222eeec4391d307820e8f56bc2d30038
Don't store view properties on network shares

Entering a folder will have Dolphin determine whether it can store the view properties in a .directory file within the folder or
in a generic config location.
It does so by checking for permissions on the file and parent dir causing various stat calls that potentially block on a slow mount.
Also, the config reading thereafter can be very slow.
Moreover, network shares are typically shared between users, so one user's view properties shouldn't affect or be overwritten
by this Dolphin instance.
It doesn't resolve symlinks but is surely an improvement over the status quo.

Differential Revision: https://phabricator.kde.org/D23458
src/views/viewproperties.cpp