[gobolinux-devel] Updating the mime database

Jonas Karlsson jonka750 at student.liu.se
Wed Apr 18 08:50:07 UTC 2007


Here's a patch to update the MIME database if the installed application  
includes a xml file, which defines its MIME types.
I've added some utility functions to Functions/File and a function to  
Functions/GoboLinux to rebuild the MIME DB. The MIME database should only  
be rebuilt if the application provides a xml file (placed in  
Shared/mime/packages).
One "glitch", as I see it, is that this will place actual file in  
/System/Links/Shared/mime (or wherever the ${goboShared}/mime directory  
is). But I guess sometimes we have to accept some files in the /S/L  
directory? Otherwice I don't know how to solve this.

-- 
/Jonas

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update-mime-database.diff
Type: text/x-diff
Size: 5937 bytes
Desc: not available
Url : http://lists.gobolinux.org/pipermail/gobolinux-devel/attachments/20070418/0807f397/attachment.bin 


More information about the gobolinux-devel mailing list