summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/apps.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 1585012b..44f0684a 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -55,9 +55,9 @@ class CustomApplications(Applications):
 		"""How to determine the default application?"""
 		f = c.file
 
-		if 'INVIM' in os.environ:
-			tmp_file = gettempdir() + "/ranger-selected-file"
-			with open(tmp_file, 'w') as tmp:
+		return_file = os.getenv("RANGER_RETURN_FILE")
+		if return_file is not None:
+			with open(return_file, 'w') as tmp:
 				tmp.write(f.path)
 			raise SystemExit()
 
ames Booth <boothj5@gmail.com> 2012-07-01 14:47:09 +0100 Added autobuild tools' href='/danisanti/profani-tty/commit/.gitignore?id=30ca6cac3d7f86e4a43410ba361793cd99d97a10'>30ca6cac ^
b1375328 ^

30ca6cac ^
376804be ^
d95ceeb3 ^

1814dcdd ^
b1375328 ^



c182f3ec ^
b1375328 ^


41fe8c22 ^
b1375328 ^





68ed20f1 ^





b1375328 ^


e94b604b ^
e0dfe483 ^
b1375328 ^


e0dfe483 ^

d944e825 ^


9d782fa6 ^
1bc69418 ^




a308f5e4 ^

9d782fa6 ^
7bc160c2 ^
1bc69418 ^




b68d2ce1 ^

1bc69418 ^

d169312a ^

7f956aa4 ^


62cbad1c ^
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89