Skip to content

Commit c4222de

Browse files
authored
Fix HWID Fetch on Linux by Craftzman7
Fix HWID Fetch on Linux
2 parents d8d44e1 + d88f4cb commit c4222de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

keyauth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,9 @@ class others:
457457
@staticmethod
458458
def get_hwid():
459459
if platform.system() != "Windows":
460-
return subprocess.Popen('hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.hardware.uuid'.split())
460+
with open("/etc/machine-id") as f:
461+
hwid = f.read()
462+
return hwid
461463

462464
cmd = subprocess.Popen(
463465
"wmic useraccount where name='%username%' get sid", stdout=subprocess.PIPE, shell=True)

0 commit comments

Comments
 (0)