Lines 1-6
Link Here
|
1 |
--- apps/x11_main.c.orig 2011-05-16 23:18:12.046785782 -0500 |
1 |
--- apps/x11_main.c.orig 2011-04-29 14:06:09.000000000 -0500 |
2 |
+++ apps/x11_main.c 2011-05-16 23:24:55.669305772 -0500 |
2 |
+++ apps/x11_main.c 2011-06-11 02:15:12.203411543 -0500 |
3 |
@@ -563,6 +563,24 @@ static void winresettmo(struct timeval * |
3 |
@@ -482,9 +482,7 @@ void winreloadfile(pdfapp_t *app) |
|
|
4 |
|
5 |
void winopenuri(pdfapp_t *app, char *buf) |
6 |
{ |
7 |
- char *browser = getenv("BROWSER"); |
8 |
- if (!browser) |
9 |
- browser = "open"; |
10 |
+ char browser[] = "xdg-open"; |
11 |
if (fork() == 0) |
12 |
execlp(browser, browser, buf, (char*)0); |
13 |
} |
14 |
@@ -563,6 +561,24 @@ static void winresettmo(struct timeval * |
4 |
tmo_at->tv_usec = 0; |
15 |
tmo_at->tv_usec = 0; |
5 |
} |
16 |
} |
6 |
|
17 |
|
Lines 25-31
Link Here
|
25 |
int main(int argc, char **argv) |
36 |
int main(int argc, char **argv) |
26 |
{ |
37 |
{ |
27 |
int c; |
38 |
int c; |
28 |
@@ -571,7 +589,7 @@ int main(int argc, char **argv) |
39 |
@@ -571,7 +587,7 @@ int main(int argc, char **argv) |
29 |
KeySym keysym; |
40 |
KeySym keysym; |
30 |
int oldx = 0; |
41 |
int oldx = 0; |
31 |
int oldy = 0; |
42 |
int oldy = 0; |