Mercurial > dwindows
comparison gtk/dw.c @ 1116:36773e04245c
Switch from "netscape" to "firefox" for the default web browser to execute.
Netscape was pretty standard when I originally wrote this, firefox is now the same.
Need to figure out a way to query the default, without having to bring in Gnome libraries.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 04 Aug 2011 22:06:58 +0000 |
parents | 884951ef2e7f |
children | 63dd52ba9a8f |
comparison
equal
deleted
inserted
replaced
1115:03cd2f3e929d | 1116:36773e04245c |
---|---|
11162 * url: Uniform resource locator. | 11162 * url: Uniform resource locator. |
11163 */ | 11163 */ |
11164 int dw_browse(char *url) | 11164 int dw_browse(char *url) |
11165 { | 11165 { |
11166 /* Is there a way to find the webbrowser in Unix? */ | 11166 /* Is there a way to find the webbrowser in Unix? */ |
11167 char *execargs[3], *browser = "netscape", *tmp; | 11167 char *execargs[3], *browser = "firefox", *tmp; |
11168 | 11168 |
11169 tmp = getenv( "DW_BROWSER" ); | 11169 tmp = getenv( "DW_BROWSER" ); |
11170 if(tmp) browser = tmp; | 11170 if(tmp) browser = tmp; |
11171 execargs[0] = browser; | 11171 execargs[0] = browser; |
11172 execargs[1] = url; | 11172 execargs[1] = url; |