Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions source/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class _RegistryKeyX86(str, Enum):
Used to access the 32-bit registry view on x64 systems.
For cleaning up legacy 32-bit NVDA copies.
"""

SOFTWARE = r"SOFTWARE\WOW6432Node"
CURRENT_VERSION = rf"{SOFTWARE}\Microsoft\Windows\CurrentVersion"
INSTALLED_COPY = rf"{CURRENT_VERSION}\Uninstall\NVDA"
Expand Down
9 changes: 7 additions & 2 deletions source/easeOfAccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class RegistryKey(str, Enum):
ROOT = _RegistryKey.EASE_OF_ACCESS
TEMP = _RegistryKey.EASE_OF_ACCESS_TEMP
APP = _RegistryKey.EASE_OF_ACCESS_APP

return RegistryKey

if attrName == "ROOT_KEY" and NVDAState._allowDeprecatedAPI():
Expand Down Expand Up @@ -122,15 +123,19 @@ def _getAutoStartConfiguration(autoStartContext: AutoStartContext) -> list[str]:
log.debug(f"Unable to find existing {autoStartContext} {_RegistryKey.EASE_OF_ACCESS}")
return []
except WindowsError:
log.error(f"Unable to open {autoStartContext} {_RegistryKey.EASE_OF_ACCESS} for reading", exc_info=True)
log.error(
f"Unable to open {autoStartContext} {_RegistryKey.EASE_OF_ACCESS} for reading", exc_info=True
)
return []

try:
conf: list[str] = winreg.QueryValueEx(k, "Configuration")[0].split(",")
except FileNotFoundError:
log.debug(f"Unable to find {autoStartContext} {_RegistryKey.EASE_OF_ACCESS} configuration")
except WindowsError:
log.error(f"Unable to query {autoStartContext} {_RegistryKey.EASE_OF_ACCESS} configuration", exc_info=True)
log.error(
f"Unable to query {autoStartContext} {_RegistryKey.EASE_OF_ACCESS} configuration", exc_info=True
)
else:
if not conf[0]:
# "".split(",") returns [""], so remove the empty string.
Expand Down