On Thu, Aug 04, 2005 at 14:54:22 -0400, muppet wrote: > > Torsten Schoenfeld said: > > On Thu, 2005-08-04 at 00:06 -0400, muppet wrote: > > > >> It appears that gnome_vfs_mime_get_default_application() is not bound > >> in Gnome2::VFS. > > > > It is, and you use it below. :-) > > There's gnome_vfs_mime_get_default_application(), which didn't work, and > gnome_vfs_mime_type_get_default_application(), which did, unless the former is > bound in perl as the latter. > > > >> Everything works up until get_default_application, which returns > >> undef. :-/ > > > > Well, works for me (after changing foo.txt to something that exists): > > My system must hate me. ... unlike windows, where the detection is purely extension-based, Gnome is supposed to look at magic numbers too. So for files, they must be opened to find their mime-type. Files that don't exist don't have mime-types (or get some useless default like application/octet-stream). (I'd assume it relies on header for network resources). ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb ucw cz>
Attachment:
signature.asc
Description: Digital signature