diff options
-rw-r--r-- | ranger/ext/img_display.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index 277d32ce..2db7d0e7 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -13,6 +13,7 @@ import termios, fcntl, struct, sys from subprocess import Popen, PIPE W3MIMGDISPLAY_PATH = '/usr/lib/w3m/w3mimgdisplay' +W3MIMGDISPLAY_OPTIONS = [] def _get_font_dimensions(): """ @@ -31,8 +32,8 @@ def _w3mimgdisplay(commands): """ Invoke w3mimgdisplay and send commands on its standard input. """ - process = Popen(W3MIMGDISPLAY_PATH, stdin=PIPE, stdout=PIPE, - universal_newlines=True) + process = Popen([W3MIMGDISPLAY_PATH] + W3MIMGDISPLAY_OPTIONS, stdin=PIPE, + stdout=PIPE, universal_newlines=True) # wait for the external program to finish output, _ = process.communicate(input=commands) |