Re: How to launch user's preferred application for a file

> So, what's the magic needed? I think I have been through all the gnome
> API reference and google must be tired of me by now.  To be honest, I
> expected something simple, like gnome_show_url, which deduces the mime
> type of the file, looks up the preferred application for that mime type,
> and launches the application with the file.

gnome_url_show should do what you want (this is defined in libgnome) :)
Alternatively, if you are using gnome 2.3, libgnome ships a gnome-open
binary which can be useful in scripts


Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=

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