diff options
-rw-r--r-- | apps/x11_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |