summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-02-12 17:18:00 +0100
committerhut <hut@lavabit.com>2012-02-12 17:18:00 +0100
commitac6df7b5e5b60b789d9262a92942a72c6192a265 (patch)
treea21487aba8b301b4a30c702a4a8b12f0ce558f9e
parente748d5056c907c5f9e46f6824442d47231a1ad32 (diff)
downloadranger-ac6df7b5e5b60b789d9262a92942a72c6192a265.tar.gz
core.main: fixed crash when using ranger as file opener
-rw-r--r--ranger/core/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index a17c6863..4bb4c48a 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -80,7 +80,8 @@ def main():
 				print(string)
 			from ranger.core.runner import Runner
 			from ranger.fsobject import File
-			runner = Runner(logfunc=print_function)
+			fm = FM()
+			runner = Runner(logfunc=print_function, fm=fm)
 			load_apps(runner, arg.clean)
 			runner(files=[File(target)], mode=arg.mode, flags=arg.flags)
 			return 1 if arg.fail_unless_cd else 0