Skip to content

Commit 9691c2d

Browse files
committed
fix: change how windows edition is checked
1 parent a10770c commit 9691c2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dk-installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2486,11 +2486,11 @@ def get_installer_instance():
24862486
# Show the menu when running from the Windows .exe without arguments
24872487
if getattr(sys, "frozen", False) and len(sys.argv) == 1:
24882488
try:
2489-
output = subprocess.check_output('systeminfo | findstr /B /C:"OS Name"', shell=True, text=True)
2489+
windows_edition = platform.win32_edition()
24902490
except Exception:
24912491
pass
24922492
else:
2493-
if "Pro" not in output:
2493+
if windows_edition == "Core":
24942494
print("\nWARNING: Your Windows edition is not compatible with Docker.")
24952495

24962496
show_menu(installer)

0 commit comments

Comments
 (0)