summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-11-20 18:14:21 +0100
committerhut <hut@lepus.uberspace.de>2015-11-20 18:14:21 +0100
commitd1956758025fe7f377ed6c920457c44f939aec3b (patch)
tree501dd966fb472f2cef0d00570db60ea0aadc9dfe /ranger
parent979242171a07033ee306253c29cff9e84fb83a26 (diff)
parentc44f0ecd123ea01ca0ab6aed04675d24c1c73a95 (diff)
downloadranger-d1956758025fe7f377ed6c920457c44f939aec3b.tar.gz
Merge branch 'vifon/root-preview-disable-info' of https://github.com/Vifon/ranger
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 96f56bf1..4c7c9482 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -107,6 +107,7 @@ def main():
         if fm.username == 'root':
             fm.settings.preview_files = False
             fm.settings.use_preview_script = False
+            fm.log.append("Running as root, disabling the file previews.")
         if not arg.debug:
             from ranger.ext import curses_interrupt_handler
             curses_interrupt_handler.install_interrupt_handler()