comparison gtk3/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 eb6b27d17fe7
children 63dd52ba9a8f
comparison
equal deleted inserted replaced
1115:03cd2f3e929d 1116:36773e04245c
9726 * url: Uniform resource locator. 9726 * url: Uniform resource locator.
9727 */ 9727 */
9728 int dw_browse(char *url) 9728 int dw_browse(char *url)
9729 { 9729 {
9730 /* Is there a way to find the webbrowser in Unix? */ 9730 /* Is there a way to find the webbrowser in Unix? */
9731 char *execargs[3], *browser = "netscape", *tmp; 9731 char *execargs[3], *browser = "firefox", *tmp;
9732 9732
9733 tmp = getenv( "DW_BROWSER" ); 9733 tmp = getenv( "DW_BROWSER" );
9734 if(tmp) browser = tmp; 9734 if(tmp) browser = tmp;
9735 execargs[0] = browser; 9735 execargs[0] = browser;
9736 execargs[1] = url; 9736 execargs[1] = url;