This is necessary because when NVDA is built with uiAccess enabled, it is an elevated process and must be launched by the shell. Attempting to launch it otherwise fails.
Fixes the NVDA desktop shortcut and shortcut key for uiAccess builds.
nvda_service.nvdaLauncher()\r
elif action=="launchNVDA":\r
import subprocess\r
- subprocess.Popen([r"%s\nvda.exe"%sys.exec_prefix]+args)\r
+ import shellapi\r
+ import winUser\r
+ shellapi.ShellExecute(0,None,\r
+ ur"%s\nvda.exe"%sys.exec_prefix.decode("mbcs"),\r
+ subprocess.list2cmdline(args).decode("mbcs"),\r
+ None,winUser.SW_SHOWNORMAL)\r
elif action=="setNvdaSystemConfig":\r
import config\r
config._setSystemConfig(args[0])\r