Allow Galeon to properly act as a viewer for GNOME help URLs. Bump

PORTREVISION.

Prompted by:	User Witr <witr@rwwa.com>
Reviewed by:	sobomax
Approved by:	sobomax
This commit is contained in:
Joe Marcus Clarke 2002-04-27 17:32:31 +00:00
parent 2a13386287
commit ca6aaac61d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58239
4 changed files with 34 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= galeon
PORTVERSION= 1.2.1
PORTREVISION= 1
CATEGORIES= www gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,16 @@
--- src/main.c.orig Fri Apr 26 14:29:08 2002
+++ src/main.c Fri Apr 26 14:52:43 2002
@@ -394,7 +394,12 @@
for (i = 0; i < n; i++)
{
/* try to expand as files */
- if (realpath (args[i], buffer) != NULL)
+ if (!strnstr(args[i], "ghelp:", strlen("ghelp:")) &&
+ !strnstr(args[i], "toc:", strlen("toc:")) &&
+ !strnstr(args[i], "info:", strlen("info:")) &&
+ !strnstr(args[i], "main:", strlen("man:")) &&
+ !strnstr(args[i], "gnome-help:", strlen("gnome-help")) &&
+ realpath (args[i], buffer) != NULL)
{
(*urls)[i] = g_strconcat ("file://", buffer, NULL);
}

View file

@ -7,6 +7,7 @@
PORTNAME= galeon
PORTVERSION= 1.2.1
PORTREVISION= 1
CATEGORIES= www gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,16 @@
--- src/main.c.orig Fri Apr 26 14:29:08 2002
+++ src/main.c Fri Apr 26 14:52:43 2002
@@ -394,7 +394,12 @@
for (i = 0; i < n; i++)
{
/* try to expand as files */
- if (realpath (args[i], buffer) != NULL)
+ if (!strnstr(args[i], "ghelp:", strlen("ghelp:")) &&
+ !strnstr(args[i], "toc:", strlen("toc:")) &&
+ !strnstr(args[i], "info:", strlen("info:")) &&
+ !strnstr(args[i], "main:", strlen("man:")) &&
+ !strnstr(args[i], "gnome-help:", strlen("gnome-help")) &&
+ realpath (args[i], buffer) != NULL)
{
(*urls)[i] = g_strconcat ("file://", buffer, NULL);
}