summarylogtreecommitdiffstats
path: root/generic_x_scheme.patch
blob: c988a6e365edda59f08685066c0783db4e0bd38d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 9b006393e35abc37dcb010af6799c5d1f04ee93b Mon Sep 17 00:00:00 2001
From: Sergey Marochkin <me@ziggi.org>
Date: Sat, 7 Nov 2015 15:43:48 +0300
Subject: [PATCH] Fix generic x scheme

---
 scripts/xdg-open.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
index 0fbd63d..ef34701 100644
--- a/scripts/xdg-open.in
+++ b/scripts/xdg-open.in
@@ -368,14 +368,14 @@ open_generic()
         fi
     fi
 
-    if [ -n "$BROWSER" ]; then
-        open_envvar "$1"
-    fi
-
     if [ -n "$DISPLAY" ]; then
         open_generic_xdg_x_scheme_handler "$1"
     fi
 
+    if [ -n "$BROWSER" ]; then
+        open_envvar "$1"
+    fi
+
     # if BROWSER variable is not set, check some well known browsers instead
     if [ x"$BROWSER" = x"" ]; then
         BROWSER=www-browser:links2:elinks:links:lynx:w3m
-- 
2.6.2