summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index c0d3e025..5adf42c9 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -594,11 +594,13 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 			if found == False:
 				data['loading'] = True
 				loadable = CommandLoader(args=[self.settings.preview_script,
-					path, str(width), str(height)],
+					path, str(width), str(height)], read=True,
 					silent=True, descr="Getting preview of %s" % path)
 				def on_after(signal):
+					self.notify("%s complete" % path)
 					exit = signal.process.poll()
-					content = signal.process.stdout.read()
+					content = signal.loader.stdout_buffer
+					content += signal.process.stdout.read()
 					if exit == 0:
 						data[(width, height)] = content
 					elif exit == 3: