1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

EOSGroup: Check for 'user.reg' file to validate prefix path

This commit is contained in:
loathingKernel 2023-12-03 17:00:29 +02:00
parent c7efe3615a
commit 70af132da1
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD

View file

@ -143,7 +143,7 @@ class EOSGroup(QGroupBox, Ui_EosWidget):
if i is None:
i = self.select_pfx_combo.currentIndex()
prefix = os.path.expanduser(self.select_pfx_combo.itemText(i))
if platform.system() != "Windows" and not os.path.exists(prefix):
if platform.system() != "Windows" and not os.path.isfile(os.path.join(prefix, "user.reg")):
return
self.current_prefix = prefix
reg_paths = eos.query_registry_entries(self.current_prefix)