diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2015-11-18 01:01:02 +0100 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2015-11-18 01:03:34 +0100 |
commit | c44f0ecd123ea01ca0ab6aed04675d24c1c73a95 (patch) | |
tree | acbc664eb6ae43c18e2026f77f9d69bf4043d1fd /ranger | |
parent | 47f34c1bd5d14a28ffd128b4f22689e626e24c1e (diff) | |
download | ranger-c44f0ecd123ea01ca0ab6aed04675d24c1c73a95.tar.gz |
core.main: Log the fact of disabling the file previews for root
Closes #429.
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/main.py | 1 |
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() |