mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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:
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
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue