gnome_url_show() alternative
Peter de Ridder
peter at xfce.org
Tue Jun 11 11:03:50 CEST 2013
On Tue, Jun 11, 2013 at 10:14 AM, Natanael Copa <ncopa at alpinelinux.org>wrote:
> On Mon, 10 Jun 2013 23:17:47 +0200
> Yves-Alexis Perez <corsac at debian.org> wrote:
> > On lun., 2013-06-10 at 13:41 -0700, Jeroen van Aart wrote:
> > > contains the following:
> > >
> > > gchar *str = g_strdup_printf("exo-open --launch WebBrowser %s",
> url);
> >
> > Yeah, and it's not really pretty.
>
> +1
>
Are your looking for gtk_show_uri [1]?
This uses gio and the mime database to find the browser.
AFAIK this will be set to the same application as exo-open when configured
using "preferred applications".
[1]
https://developer.gnome.org/gtk2/stable/gtk2-Filesystem-utilities.html#gtk-show-uri
Regards,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20130611/868bc087/attachment.html>
More information about the Xfce4-dev
mailing list