El vie, 26-08-2005 a las 12:00 +0000, [EMAIL PROTECTED] escribió: > Send Thunar-dev mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://foo-projects.org/mailman/listinfo/thunar-dev > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Thunar-dev digest..." > > > Today's Topics: > > 1. Mime Recognition (Ori Bernstein) > 2. Re: Mime Recognition (Benedikt Meurer) > 3. Re: Mime Recognition (Benedikt Meurer) > 4. Re: Mime Recognition (Ori Bernstein) > 5. Re: Mime Recognition (Benedikt Meurer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 25 Aug 2005 17:30:28 -0400 > From: Ori Bernstein <[EMAIL PROTECTED]> > Subject: [Thunar-dev] Mime Recognition > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=US-ASCII > > >From what I've seen of the Thunar source code, it looks like all the mime > recognition resides in thunar-vfs/thunar-vfs-mime*. > > What I'd like to propose is moving this mime parsing code out into either > libexo or libxfce4util, allowing other programs to use this mime database > code. > > I think that this will make it much easier to implement properly opening files > in programs like email clients, which have to recognize attachments and find > out program associations, or panel launchers, which would be able to accept a > file URI instead of a command line, and also be able to decide on the icon to > display automatically. > > I'm sure that there are many other examples of programs throughout the desktop > that would be able to generic mime information to their advantage. > > Does anyone agree that putting mime parsing in a library available to any Xfce > application is a good idea? or am I off my rocker? > >
You currently (xfce-4.2.x) can also have mime recognition by loading the "mime" module installed by libxfcegui4. You do not have to link with this module, instead load as a plugin. Apparently the gtk doc generation is borked so you also have to look for the comments in source (placed in .h file). -- Edscott Wilson Garcia <[EMAIL PROTECTED]> _______________________________________________ Thunar-dev mailing list [email protected] http://foo-projects.org/mailman/listinfo/thunar-dev
