GNOME Bugzilla – Bug 143381
gnome-vfs doesn't reload Freedesktop.org MIME database on change
Last modified: 2004-12-22 21:47:04 UTC
If you change the Freedesktop.org MIME databse, gnome-vfs doesn't reload it automatically.
Created attachment 28160 [details] [review] Patch to fix the problem. This works in the gnome-vfs test program I wrote (see other attachment), but doesn't seem to have any effect on Nautilus. But then again, Nautilus 2.6 doesn't seem to reload changes from ~/.gnome/mime-info either so I'm pretty sure that's a Nautilus issue.
Created attachment 28161 [details] [review] Test program. The test program I wrote. Usage: ./vfs <FILENAME> Prints a file's MIME type to stdout. Watches for changes in the MIME database using GnomeVFSMimeMonitor. Re-prints the file's MIME type to stdout each time the MIME database has changed.
Ping? It's been more than a month.
Thanks for your efforts. gicmo: What's your opinion?
Dave Camp, Ray Strode and Jonathan Blandford merged quite a lot of completely new mime stuff yesterday. I think these are the best to ask for the current status. (It may have been fix, it may be not) Better ping these one. I dont have the bugzilla mail of them arround.
Dave, Ray, Jonathan?
It notices changes within 5 seconds, but doesn't use fam yet.
gnome-vfs-mime-info-cache.c is now using gnome_vfs_monitor_add. /usr/share/applications/ and ~/.local/share/applications/ shows in the gam_server's list of open file descriptors. Updates for me are instant (upon running update-desktop-database).