diff options
author | toonn <toonn@toonn.io> | 2021-08-08 19:43:28 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-08-08 19:43:28 +0200 |
commit | 08dc11d721fbe954c955fe18592eaf140ebed082 (patch) | |
tree | d4213974707bf9ff6ece046ae797016e4c71dcc3 | |
parent | 19ac943bb34300b870880154c681028593512430 (diff) | |
download | ranger-08dc11d721fbe954c955fe18592eaf140ebed082.tar.gz |
img_display: Use Popen23 for compatibility
-rw-r--r-- | ranger/ext/img_display.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index e85c4f84..569d03a9 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -32,6 +32,7 @@ from tempfile import NamedTemporaryFile from ranger import PY3 from ranger.core.shared import FileManagerAware, SettingsAware +from ranger.ext.popen23 import Popen23 W3MIMGDISPLAY_ENV = "W3MIMGDISPLAY_PATH" W3MIMGDISPLAY_OPTIONS = [] @@ -167,7 +168,7 @@ class W3MImageDisplayer(ImageDisplayer, FileManagerAware): fretint = fcntl.ioctl(fd_stdout, termios.TIOCGWINSZ, farg) rows, cols, xpixels, ypixels = struct.unpack("HHHH", fretint) if xpixels == 0 and ypixels == 0: - with Popen( + with Popen23( [self.binary_path, "-test"], stdout=PIPE, universal_newlines=True, |