summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 19e28db3..f5aba47e 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -68,14 +68,14 @@ def main():
 	crash_traceback = None
 	try:
 		# Initialize objects
-		EnvironmentAware.env = Environment(target)
 		fm = FM()
+		FileManagerAware.fm = fm
+		EnvironmentAware.env = Environment(target)
 		fm.tabs = dict((n+1, os.path.abspath(path)) for n, path \
 				in enumerate(targets[:9]))
 		load_settings(fm, arg.clean)
 		if fm.env.username == 'root':
 			fm.settings.preview_files = False
-		FileManagerAware.fm = fm
 		fm.ui = UI()
 		if not arg.debug:
 			curses_interrupt_handler.install_interrupt_handler()
'n118' href='#n118'>118 119 120 121 122 123 124 125 126 127 128 129