Add w3m' and gnome-help-browser' into the list of browsers that may be used

to read AbiWord help files.
This commit is contained in:
Maxim Sobolev 2001-08-08 16:11:09 +00:00
parent 11ece3cc77
commit 8a16cfc628
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45972
4 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,26 @@
$FreeBSD$
--- src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 15:59:48 1.1
+++ src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 16:06:14
@@ -767,9 +767,19 @@
fmtstring = "khelpcenter %s &";
execstring = g_strdup_printf(fmtstring, szURL);
}
- else
+ else if(progExists("gnome-help-browser"))
+ {
+ fmtstring = "gnome-help-browser %s &";
+ execstring = g_strdup_printf(fmtstring, szURL);
+ }
+ else if(progExists("lynx"))
{
fmtstring = "xterm -e lynx %s &";
+ execstring = g_strdup_printf(fmtstring, szURL);
+ }
+ else if(progExists("w3m"))
+ {
+ fmtstring = "xterm -e w3m %s &";
execstring = g_strdup_printf(fmtstring, szURL);
}

View file

@ -0,0 +1,26 @@
$FreeBSD$
--- src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 15:59:48 1.1
+++ src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 16:06:14
@@ -767,9 +767,19 @@
fmtstring = "khelpcenter %s &";
execstring = g_strdup_printf(fmtstring, szURL);
}
- else
+ else if(progExists("gnome-help-browser"))
+ {
+ fmtstring = "gnome-help-browser %s &";
+ execstring = g_strdup_printf(fmtstring, szURL);
+ }
+ else if(progExists("lynx"))
{
fmtstring = "xterm -e lynx %s &";
+ execstring = g_strdup_printf(fmtstring, szURL);
+ }
+ else if(progExists("w3m"))
+ {
+ fmtstring = "xterm -e w3m %s &";
execstring = g_strdup_printf(fmtstring, szURL);
}

View file

@ -0,0 +1,26 @@
$FreeBSD$
--- src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 15:59:48 1.1
+++ src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 16:06:14
@@ -767,9 +767,19 @@
fmtstring = "khelpcenter %s &";
execstring = g_strdup_printf(fmtstring, szURL);
}
- else
+ else if(progExists("gnome-help-browser"))
+ {
+ fmtstring = "gnome-help-browser %s &";
+ execstring = g_strdup_printf(fmtstring, szURL);
+ }
+ else if(progExists("lynx"))
{
fmtstring = "xterm -e lynx %s &";
+ execstring = g_strdup_printf(fmtstring, szURL);
+ }
+ else if(progExists("w3m"))
+ {
+ fmtstring = "xterm -e w3m %s &";
execstring = g_strdup_printf(fmtstring, szURL);
}

View file

@ -0,0 +1,26 @@
$FreeBSD$
--- src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 15:59:48 1.1
+++ src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 16:06:14
@@ -767,9 +767,19 @@
fmtstring = "khelpcenter %s &";
execstring = g_strdup_printf(fmtstring, szURL);
}
- else
+ else if(progExists("gnome-help-browser"))
+ {
+ fmtstring = "gnome-help-browser %s &";
+ execstring = g_strdup_printf(fmtstring, szURL);
+ }
+ else if(progExists("lynx"))
{
fmtstring = "xterm -e lynx %s &";
+ execstring = g_strdup_printf(fmtstring, szURL);
+ }
+ else if(progExists("w3m"))
+ {
+ fmtstring = "xterm -e w3m %s &";
execstring = g_strdup_printf(fmtstring, szURL);
}