All pastes #64268 Raw Edit

Miscellany

public text v1 · immutable
#64268 ·published 2006-06-11 12:53 UTC
rendered paste body
#! /bin/sh /usr/share/dpatch/dpatch-run
## 09_browser.dpatch by evo 
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix browser menus.

@DPATCH@
diff -Naur xchat-2.4.5.orig/src/common/xchat.c xchat-2.4.5/src/common/xchat.c
--- xchat-2.4.5.orig/src/common/xchat.c	2005-09-23 18:55:33.000000000 +0200
+++ xchat-2.4.5/src/common/xchat.c	2005-09-23 19:15:04.000000000 +0200
@@ -661,11 +661,7 @@
 		"NAME Open in new tab\n"			"CMD !epiphany -n '%s'\n\n"\
 		"NAME Open in new window\n"		"CMD !epiphany -w '%s'\n\n"\
 	"NAME ENDSUB\n"							"CMD \n\n"\
-	"NAME SUB\n"								"CMD Netscape...\n\n"\
-		"NAME Open in existing\n"			"CMD !netscape -remote 'openURL(%s)'\n\n"\
-		"NAME Open in new window\n"		"CMD !netscape -remote 'openURL(%s,new-window)'\n\n"\
-		"NAME Run new Netscape\n"			"CMD !netscape %s\n\n"\
-	"NAME ENDSUB\n"							"CMD \n\n"\
+	"NAME Open in web browser\n"            "CMD !sensible-browser '%s'\n\n" \
 	"NAME SUB\n"								"CMD Mozilla...\n\n"\
 		"NAME Open in existing\n"			"CMD !mozilla -remote 'openURL(%s)'\n\n"\
 		"NAME Open in new window\n"		"CMD !mozilla -remote 'openURL(%s,new-window)'\n\n"\
diff -Naur xchat-2.4.5.orig/src/fe-gtk/fe-gtk.c xchat-2.4.5/src/fe-gtk/fe-gtk.c
--- xchat-2.4.5.orig/src/fe-gtk/fe-gtk.c	2005-09-03 15:16:49.000000000 +0200
+++ xchat-2.4.5/src/fe-gtk/fe-gtk.c	2005-09-23 19:18:04.000000000 +0200
@@ -839,14 +839,14 @@
 		return;
 	}
 
-	moz = g_find_program_in_path ("gnome-moz-remote");
+	moz = g_find_program_in_path ("sensible-browser");
 	if (moz)
 	{
 		snprintf (tbuf, sizeof (tbuf), "%s %s", moz, url);
 		g_free (moz);
 	} else
 	{
-		snprintf (tbuf, sizeof (tbuf), "mozilla -remote 'openURL(%s)'", url);
+		snprintf (tbuf, sizeof (tbuf), "sensible-browser '%s'", url);
 	}
 	xchat_exec (tbuf);
 #endif