Re: Tool for search mime association
- From: Don Scorgie <DonScorgie Blueyonder co uk>
- To: gnome-list gnome org
- Subject: Re: Tool for search mime association
- Date: Wed, 21 Jun 2006 09:49:31 +0100
Hi,
The gnomevfs API isn't depreciated (AFAIK). Certainly, we use gnomevfs
extensively.
However, if your looking for a small easy tool, maybe writing your own
would be okay?
Check the API documentation for gnomevfs and find this function:
gnome_vfs_mime_get_default_application_for_uri [1]
As was pointed out, gconf isn't really anything to do with mime types.
gconf is used for storing preferences and things. gnomevfs really is
the way to get at mime types (at least AFAIK).
Don
[1]
http://developer.gnome.org/doc/API/2.0/gnome-vfs-2.0/gnome-vfs-20-gnome-vfs-mime-database.html#gnome-vfs-mime-get-default-application-for-uri
On Tue, 2006-06-20 at 14:59 -0300, Augusto Arcoverde da Rocha wrote:
> The gnomevfs mime API seems to be deprecated and I'm seeking for a
> more self contained tool (without parsing conf files directly) to
> avoid distro conflicts or GNOME version changes.
>
> GConf is a new interface to environment definitions, gconftool
> implement a command line access interface to GConf database, but I
> don't know to use it.
>
> I use
>
> gconftool-2 --dump --recursive-list /schemas | grep mime
>
> and don't get usefull information.
>
>
> Thanks,
> Augusto Arcoverde da Rocha
>
> On 6/20/06, Don Scorgie <DonScorgie blueyonder co uk> wrote:
> > Hi,
> >
> > Maybe look at
> > gnomevfs-info
> > it provides all sorts of useful information about a file, one of which
> > is "Default app", which specifies a .desktop file (found
> > in /usr/share/applications) where the info can be found (provided a
> > default app exists). Would need a bit of parsing though.
> _______________________________________________
> gnome-list mailing list
> gnome-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]