chrisjbillington / git-nautilus-icons

A nautilus Python extension to overlay icons on files in git repositories
BSD 2-Clause "Simplified" License
43 stars 4 forks source link

Nautilus caching of status icons is too agressive #20

Open chrisjbillington opened 3 years ago

chrisjbillington commented 3 years ago

Nautilus doesn't ask the extension for new icons often enough, seemingly even if files are changing on disk.

This might be a bug in Nautilus, and if so should be reported upstream.

We could also perhaps invalidate the file info after a fixed time, e.g. 5 minutes, to force Nautilus to ask for the info again.

We could use inotify to watch all the files and invalidate only when something actually changes, but I suspect this won't scale since inotify has fairly strict limits on how many files you can watch.

See also: https://github.com/chrisjbillington/git-nautilus-icons/issues/19