From: Claudio Saavedra <[email protected]> > El jue, 17-09-2009 a las 12:15 +0200, Thomas Perl escribió: > > Hello! > > > > What is the canonical way of opening a browser and the media player > > (or more general: opening a URL and opening a local file) from code > > on Fremantle?
In Fremantle you usually use the library hildonmime, and probably you are asking about this function: /** * hildon_mime_open_file: * @con: The D-BUS connection to use. * @file: A %const @gchar pointer URI to be opened (UTF-8). * * This function opens a file in the application that has * registered as the handler for the mime type of the @file. ... This allows you to ask to open a file, and libhildonmime will take care of use the correct application (the applications register itself using this library, something like "hey, I can open this mime file"). In the same case, AFAIK, you can use hildonmime to ask which applications or actions, you can use with a uri (local file and so on). This could be useful if you want, for example, open the typical "open with..." pop up. Check hildon_uri_get_actions for this. I hope this helps. > gtk_show_uri() should work in theory, but I don't know if it does in > practice. As far as I know, most of the Fremantle apps are not using that (although a good question would be "why not?"). BR === API ([email protected]) _______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
