After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 143381 - gnome-vfs doesn't reload Freedesktop.org MIME database on change
gnome-vfs doesn't reload Freedesktop.org MIME database on change
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: MIME and file/program mapping
cvs (head)
Other All
: High normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-30 06:52 UTC by Hongli Lai
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
Patch to fix the problem. (6.64 KB, patch)
2004-05-30 06:53 UTC, Hongli Lai
none Details | Review
Test program. (1010 bytes, patch)
2004-05-30 06:56 UTC, Hongli Lai
none Details | Review

Description Hongli Lai 2004-05-30 06:52:25 UTC
If you change the Freedesktop.org MIME databse, gnome-vfs doesn't reload it
automatically.
Comment 1 Hongli Lai 2004-05-30 06:53:57 UTC
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.
Comment 2 Hongli Lai 2004-05-30 06:56:08 UTC
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.
Comment 3 Hongli Lai 2004-07-14 19:29:11 UTC
Ping? It's been more than a month.
Comment 4 Christian Neumair 2004-07-22 19:22:33 UTC
Thanks for your efforts. gicmo: What's your opinion?
Comment 5 Christian Kellner 2004-07-22 19:28:04 UTC
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.
Comment 6 Christian Neumair 2004-07-22 20:08:48 UTC
Dave, Ray, Jonathan?
Comment 7 Jonathan Blandford 2004-07-22 20:29:24 UTC
It notices changes within 5 seconds, but doesn't use fam yet.
Comment 8 Allison Karlitskaya (desrt) 2004-08-14 19:24:21 UTC
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).