[Thunar-dev] Thunar-dev Digest, Vol 7, Issue 12

Edscott Wilson Garcia edscott at xfce.org
Fri Aug 26 15:36:09 CEST 2005


El vie, 26-08-2005 a las 12:00 +0000, thunar-dev-request at xfce.org
escribió:
> Send Thunar-dev mailing list submissions to
> 	thunar-dev at xfce.org
> 
> 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
> 	thunar-dev-request at xfce.org
> 
> You can reach the person managing the list at
> 	thunar-dev-owner at xfce.org
> 
> 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 <rand_chars at rogers.com>
> Subject: [Thunar-dev] Mime Recognition
> To: thunar-dev at xfce.org
> Message-ID: <20050825173028.373a6893.rand_chars at rogers.com>
> 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 <edscott at xfce.org>




More information about the Thunar-dev mailing list