From 4ff408357b4584a84bc450a765fe11e7a52e8f00 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 2 Oct 2011 14:11:59 +0200 Subject: Default to opening URIs with xdg-open instead of open in X11 viewer. Based on a patch by Zhihao Yuan . --- apps/x11_main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/x11_main.c') diff --git a/apps/x11_main.c b/apps/x11_main.c index b8f041cf..6d8e789e 100644 --- a/apps/x11_main.c +++ b/apps/x11_main.c @@ -510,7 +510,13 @@ void winopenuri(pdfapp_t *app, char *buf) { char *browser = getenv("BROWSER"); if (!browser) + { +#ifdef __APPLE__ browser = "open"; +#else + browser = "xdg-open"; +#endif + } if (fork() == 0) execlp(browser, browser, buf, (char*)0); } -- cgit v1.2.3