Make sure to pass startupinfo into all subprocesses that are run in windows

This commit is contained in:
Micah Lee 2020-02-20 12:31:57 -08:00
parent 264429f313
commit 5747f338dc
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -114,7 +114,8 @@ class SettingsWidget(QtWidgets.QWidget):
# Is update containers required? # Is update containers required?
output = subprocess.check_output( output = subprocess.check_output(
[self.common.container_runtime, "image", "ls", "dangerzone"] [self.common.container_runtime, "image", "ls", "dangerzone"],
startupinfo=self.common.get_subprocess_startupinfo(),
) )
if b"dangerzone" not in output: if b"dangerzone" not in output:
self.update_checkbox.setCheckState(QtCore.Qt.Checked) self.update_checkbox.setCheckState(QtCore.Qt.Checked)