diff -ur xdvik-22.82.orig/texk/xdvik/browser.c xdvik-22.82/texk/xdvik/browser.c
--- xdvik-22.82.orig/texk/xdvik/browser.c	2004-04-03 18:43:18.000000000 +0800
+++ xdvik-22.82/texk/xdvik/browser.c	2004-04-22 15:23:17.000000000 +0800
@@ -191,6 +191,7 @@
     my_child = xmalloc(sizeof *my_child);
     my_io = xmalloc(sizeof *my_io);
     statusline_print(STATUS_MEDIUM, "Trying to launch browser ...");
+    if ( *browser == '!' ) ++browser;
     /* flush output buffers to avoid double buffering (i.e. data
        waiting in the output buffer being written twice, by the parent
        and the child) */
diff -ur xdvik-22.82.orig/texk/xdvik/hypertex.c xdvik-22.82/texk/xdvik/hypertex.c
--- xdvik-22.82.orig/texk/xdvik/hypertex.c	2004-04-22 15:21:26.000000000 +0800
+++ xdvik-22.82/texk/xdvik/hypertex.c	2004-04-22 15:23:17.000000000 +0800
@@ -1960,6 +1960,14 @@
     
     TRACE_HTEX((stderr, "launch_program called with |%s|", filename));
 
+    /* force using the browser if it begins with '!' */
+    if ( ((ptr=resource.browser) != NULL || 
+	  (ptr=getenv("BROWSER")) != NULL ||
+	  (ptr=getenv("WWWBROWSER")) != NULL) && *ptr=='!' ) {
+	launch_browser(filename);
+	return;
+    }
+
     /* is it a local file? */
     local_filename_sans_prefix = is_local_file(filename);
     if (local_filename_sans_prefix == NULL) { /* not local */
diff -ur xdvik-22.82.orig/texk/xdvik/xdvi.c xdvik-22.82/texk/xdvik/xdvi.c
--- xdvik-22.82.orig/texk/xdvik/xdvi.c	2004-04-22 15:21:26.000000000 +0800
+++ xdvik-22.82/texk/xdvik/xdvi.c	2004-04-22 15:23:17.000000000 +0800
@@ -938,7 +938,7 @@
     /* linkstyle	*/ "0|1|2|3",
     /* linkcolor	*/ "color",
     /* visitedlinkcolor	*/ "color",
-    /* browser		*/ "WWWbrowser",
+    /* browser		*/ "[!]WWWbrowser",
     /* anchorposition	*/ "anchor",
     /* [end marker]	*/ USAGESTR_END_MARKER
 };
