From c44f0ecd123ea01ca0ab6aed04675d24c1c73a95 Mon Sep 17 00:00:00 2001 From: Wojciech Siewierski Date: Wed, 18 Nov 2015 01:01:02 +0100 Subject: core.main: Log the fact of disabling the file previews for root Closes #429. --- ranger/core/main.py | 1 + 1 file changed, 1 insertion(+) 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() -- cgit 1.4.1-2-gfad0