Re: How can I open an uri use gtk function?



On Wed, 2008-11-12 at 09:09 +0100, Mike Massonnet wrote:
> Le Wed, 12 Nov 2008 10:13:38 +0800,
> "Guoling Gao" <gguoling gmail com> a écrit :
> 
> > Hi all,
> > Can I open URI use gtk function, except gnome-*? I want to open an
> > URI from a program, but not find the right method.
> > thanks.
> 
> xdg-open would be the simplest way of doing so, from head off:
> command = g_strdup_printf ("xdg-open %s", uri);
> gdk_spawn_command_line (command);

not likely to work in a cross-platform GTK application, no? 





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