summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-15 01:46:02 +0200
committerhut <hut@lavabit.com>2010-10-15 01:46:02 +0200
commit5b8b6d605bbb8af8ca5633117a3ca36df0c84b0a (patch)
tree113671b3c7d6be6459f896a3860f56880e9507a5 /ranger
parentcc470758bc3c6f7d51d3501740d87b62573bf0bb (diff)
downloadranger-5b8b6d605bbb8af8ca5633117a3ca36df0c84b0a.tar.gz
core.main: disable preview script for root by default
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index bfb342f3..c488dc5c 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -74,6 +74,7 @@ def main():
 		load_settings(fm, arg.clean)
 		if fm.env.username == 'root':
 			fm.settings.preview_files = False
+			fm.settings.use_preview_script = False
 		if not arg.debug:
 			from ranger.ext import curses_interrupt_handler
 			curses_interrupt_handler.install_interrupt_handler()
85483e026d79ab05da9f1e8e4b45293'>4c13e1f2 ^
34a60763 ^


62cd83ba ^

34a60763 ^
f07bb12f ^





1cd06f3f ^
f07bb12f ^
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