GNOME Bugzilla – Bug 730841
grl-file-system: no notification changes for root container
Last modified: 2014-06-05 12:05:14 UTC
When setting a different root container (like /home/user/Music) and we listen for changes, we get notifications for anything under any subfolder, but not for the Music folder itself). So if we get a notification if we touch /home/user/Music/foo/bar.mp3 but not if we touch /home/user/Music/bar.mp3 with base-uri set to /home/user/Music
Reassigning bug (wrong component)
I don't see anywhere in grl-filesystem.c where add_monitor is called on the original chosen_uris list. It enumerates them and watches their subfolders, but I don't see any logic that calls add_monitor on the top level. Maybe simply adding that would fix this issue?
Maybe we forgot to do it when we set up the base-uri.
Created attachment 277596 [details] [review] Adds file monitors to the base-uri chosen-uris paths. This patch seems to fix the issue here. Feel free to merge it if it looks good to you.
Thanks!