SUMMARY Demonstrative video: https://youtu.be/vajJ5kUcY3Q If I change folder permissions of a folder I've already visited from the terminal and then try to create a file inside it, the GUI either doesn't allow me to do things I have permissions for or allows me to start doing things I can't finish. STEPS TO REPRODUCE 1. Create a folder that is owned by the root 2. Visit that folder 3. Give the user write permission to that folder 4. Attempt to add a file to that folder OBSERVED RESULT Dolphin doesn't allow creating a file even though I have permissions to do so EXPECTED RESULT Dolphin should allow me to create a file FURTHER STEPS TO PRODUCE 5. Reopen Dolphin 6. Visit that folder again 7. Remove write permissions to that folder from the user 8. Attempt to add a file to that folder OBSERVED RESULTS Right click menu appears as if I could create a file but Dolphin returns "Access denied" after finishing the file creation dialogue EXPECTED RESULTS The options to create a file should be greyed out SOFTWARE/OS VERSIONS Linux: Arch Linux KDE Plasma Version: 5.93.0 KDE Frameworks Version: 5.249.0 Qt Version: 6.7.0
In KF6 permissions are not refreshed often (isWritable uses cached data since 989e0c40dcb30393aed402cdf98be572fead6ed1 https://invent.kde.org/frameworks/kio/-/merge_requests/1221) Unfortunately it seems we don't listen properly for IN_ATTRIB inotify modification for folders. KDirWatch and KDirLister need some cleaning/refactoring IMO.