mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 18:22:37 +02:00
Prevent background windows from popping up for subprocess calls in Windows
This commit is contained in:
parent
ee04570048
commit
8d40555bf5
1 changed files with 4 additions and 1 deletions
|
@ -162,6 +162,7 @@ class WaitingWidget(QtWidgets.QWidget):
|
||||||
[container_runtime, "image", "ls"],
|
[container_runtime, "image", "ls"],
|
||||||
stdout=subprocess.DEVNULL,
|
stdout=subprocess.DEVNULL,
|
||||||
stderr=subprocess.DEVNULL,
|
stderr=subprocess.DEVNULL,
|
||||||
|
startupinfo=self.global_common.get_subprocess_startupinfo(),
|
||||||
) as p:
|
) as p:
|
||||||
p.communicate()
|
p.communicate()
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
|
@ -607,7 +608,9 @@ class ConvertWidget(QtWidgets.QWidget):
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
dest_filename_windows = self.common.output_filename.replace("/", "\\")
|
dest_filename_windows = self.common.output_filename.replace("/", "\\")
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
f'explorer.exe /select,"{dest_filename_windows}"', shell=True
|
f'explorer.exe /select,"{dest_filename_windows}"',
|
||||||
|
shell=True,
|
||||||
|
startupinfo=self.global_common.get_subprocess_startupinfo(),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Open
|
# Open
|
||||||
|
|
Loading…
Reference in a new issue