mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-20 04:04:45 +03:00
src/PIL/ImageShow.py: UnixViewers.show_file() method have been updated.
This commit is contained in:
parent
30227cde0e
commit
6a84854da9
|
@ -240,11 +240,13 @@ class UnixViewer(Viewer):
|
|||
command = self.get_command(path, **options)
|
||||
|
||||
kwargs = {
|
||||
"shell": True,
|
||||
"stdout": subprocess.PIPE,
|
||||
"stderr": subprocess.PIPE
|
||||
}
|
||||
|
||||
th = threading.Thread(
|
||||
target=subprocess.run, args=(command.split(),), kwargs=kwargs, name=path
|
||||
target=subprocess.run, args=(command, ), kwargs=kwargs, name=path
|
||||
)
|
||||
self.opened_images.append(th.name)
|
||||
th.start()
|
||||
|
|
Loading…
Reference in New Issue
Block a user