Skip to content

Commit d7a45cc

Browse files
authored
Fix HWID Fetch on Linux
1 parent d8d44e1 commit d7a45cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

keyauth.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,10 @@ 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+
f = open("/etc/machine-id")
461+
hwid = f.read()
462+
f.close()
463+
return hwid
461464

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

0 commit comments

Comments
 (0)