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()