guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] add web/mime support


From: Nala Ginrut
Subject: Re: [PATCH] add web/mime support
Date: Thu, 17 Jan 2013 18:37:35 +0800

On Thu, 2013-01-17 at 11:06 +0100, Andy Wingo wrote:
> On Thu 17 Jan 2013 09:17, Nala Ginrut <address@hidden> writes:
> 
> > On Wed, 2013-01-16 at 11:46 +0100, Andy Wingo wrote:
> >> It would be nice to use
> >> http://freedesktop.org/wiki/Specifications/shared-mime-info-spec on free
> >> software systems.
> >
> > Are you suggesting use mime-info of freedesktop? I think we can write a
> > parser for that XML files, but it makes Guile depends on desktop.
> > Did I miss something?
> 
> That is a specification of where files live on disk and what meaning
> they have.  So the thing that your module would have to do would be to
> parse those files, and fall back on some other mechanism if those files
> are unavailable.
> 

I see, it's easy to do that with parsing 'mime/glob', and more generic.
To avoid parse this file each time, it's necessary to write a cache
mechanism.
Besides, I think a filename parser to checkout its mime could also be
added.

PS: Do you think it's proper to use the same implementation in my server
project? I'm not sure whether this mime thing would exist in any GNU
system for a server purpose rather than a desktop one.

> Cheers,
> 
> Andy





reply via email to

[Prev in Thread] Current Thread [Next in Thread]