diff options
author | wen <wen@FreeBSD.org> | 2011-06-16 16:11:44 +0800 |
---|---|---|
committer | wen <wen@FreeBSD.org> | 2011-06-16 16:11:44 +0800 |
commit | 8a833aa749928d04b49fee89ceb0ce2b01a0941a (patch) | |
tree | 0b6957a1a1106954eb175c646aedadce6c73b37c | |
parent | d8ffb5fe8bc784f0c26027d1224e54bc13675635 (diff) | |
download | freebsd-ports-gnome-8a833aa749928d04b49fee89ceb0ce2b01a0941a.tar.gz freebsd-ports-gnome-8a833aa749928d04b49fee89ceb0ce2b01a0941a.tar.zst freebsd-ports-gnome-8a833aa749928d04b49fee89ceb0ce2b01a0941a.zip |
- Makes use of xdg-open instead of $BROWSER
PR: ports/157756
Submitted by: Zhihao Yuan <lichray@gmail.com> (maintainer)
-rw-r--r-- | graphics/mupdf/Makefile | 2 | ||||
-rw-r--r-- | graphics/mupdf/files/patch-apps_x11_main.c | 19 |
2 files changed, 16 insertions, 5 deletions
diff --git a/graphics/mupdf/Makefile b/graphics/mupdf/Makefile index 32e12bab8ba4..c2de4e8314ba 100644 --- a/graphics/mupdf/Makefile +++ b/graphics/mupdf/Makefile @@ -6,7 +6,7 @@ PORTNAME= mupdf PORTVERSION= 0.8.165 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= graphics MASTER_SITES= GOOGLE_CODE \ diff --git a/graphics/mupdf/files/patch-apps_x11_main.c b/graphics/mupdf/files/patch-apps_x11_main.c index 7395cb6cf7ff..1b5545bdcac4 100644 --- a/graphics/mupdf/files/patch-apps_x11_main.c +++ b/graphics/mupdf/files/patch-apps_x11_main.c @@ -1,6 +1,17 @@ ---- apps/x11_main.c.orig 2011-05-16 23:18:12.046785782 -0500 -+++ apps/x11_main.c 2011-05-16 23:24:55.669305772 -0500 -@@ -563,6 +563,24 @@ static void winresettmo(struct timeval * +--- apps/x11_main.c.orig 2011-04-29 14:06:09.000000000 -0500 ++++ apps/x11_main.c 2011-06-11 02:15:12.203411543 -0500 +@@ -482,9 +482,7 @@ void winreloadfile(pdfapp_t *app) + + void winopenuri(pdfapp_t *app, char *buf) + { +- char *browser = getenv("BROWSER"); +- if (!browser) +- browser = "open"; ++ char browser[] = "xdg-open"; + if (fork() == 0) + execlp(browser, browser, buf, (char*)0); + } +@@ -563,6 +561,24 @@ static void winresettmo(struct timeval * tmo_at->tv_usec = 0; } @@ -25,7 +36,7 @@ int main(int argc, char **argv) { int c; -@@ -571,7 +589,7 @@ int main(int argc, char **argv) +@@ -571,7 +587,7 @@ int main(int argc, char **argv) KeySym keysym; int oldx = 0; int oldy = 0; |