From d807aa384dddd49aada76c124acbfd2bca93fb59 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 19 Mar 2014 22:40:59 +0100 Subject: ext.img_display: fixed ImageDisplayer.quit when crashing in initialize --- ranger/ext/img_display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index d470fb24..a70fe366 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -30,12 +30,12 @@ class ImageDisplayer(object): def initialize(self): """start w3mimgdisplay""" - self.is_initialized = True self.binary_path = os.environ.get("W3MIMGDISPLAY_PATH", None) if not self.binary_path: self.binary_path = W3MIMGDISPLAY_PATH self.process = Popen([self.binary_path] + W3MIMGDISPLAY_OPTIONS, stdin=PIPE, stdout=PIPE, universal_newlines=True) + self.is_initialized = True def draw(self, path, start_x, start_y, width, height): """Draw an image at the given coordinates.""" -- cgit 1.4.1-2-gfad0