mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 02:12:36 +02:00
In Windows, suppress extra window from popping up in subprocess
This commit is contained in:
parent
61839f5b24
commit
e5da385eef
1 changed files with 6 additions and 2 deletions
|
@ -430,7 +430,9 @@ class GlobalCommon(object):
|
|||
print("Installing Dangerzone container image...")
|
||||
|
||||
p = subprocess.Popen(
|
||||
[self.get_container_runtime(), "load"], stdin=subprocess.PIPE
|
||||
[self.get_container_runtime(), "load"],
|
||||
stdin=subprocess.PIPE,
|
||||
startupinfo=self.get_subprocess_startupinfo(),
|
||||
)
|
||||
|
||||
chunk_size = 1024
|
||||
|
@ -473,6 +475,7 @@ class GlobalCommon(object):
|
|||
self.container_name,
|
||||
],
|
||||
text=True,
|
||||
startupinfo=self.get_subprocess_startupinfo(),
|
||||
)
|
||||
found_image_id = found_image_id.strip()
|
||||
|
||||
|
@ -484,7 +487,8 @@ class GlobalCommon(object):
|
|||
print(f"Deleting old dangerzone container image")
|
||||
|
||||
subprocess.check_output(
|
||||
[self.get_container_runtime(), "rmi", found_image_id]
|
||||
[self.get_container_runtime(), "rmi", found_image_id],
|
||||
startupinfo=self.get_subprocess_startupinfo(),
|
||||
)
|
||||
|
||||
return installed
|
||||
|
|
Loading…
Reference in a new issue