It is possible to let add-ons detect profile switches and "disable"
themselves if a different app is in use (it requires add-ons to listen to
config profile switched action and respond by removing/assigning gestures on
the fly; it may not work for custom gestures). In reality, you are not
making add-ons disable themselves completely - you are effectively going to
let add-ons tell NVDA that they don't want to respond to hotkeys as long as
you are focused in a specific window. Python doesn't have a facility to
arbitrarily unload modules once imported.
Right now NV Access and several testers are trying to resolve a really
critical issue for SAPI4 synthesizer users. Specifically, NVDA crashes if
trying to use SAPI4 synthesizers. Hopefully it can be resolved before 2021.1
beta is released, but if not, one of the following could happen:
* NVDA may need to use older and thus quite insecure version of Python
(Python 3.7 has entered security fixes mode, so only source code releases
will be made), and this is based on a dump analysis from Mick Curran from NV
Access who noted that this issue is specific to Python 3.8 and later.
* It appears the issue might be something to do with a library Python uses,
and if yes, we need to talk to Python core developers so they can resolve it
by the time Python 3.10 comes out later this year.
* We may need to say goodbye to built-in support for SAPI4 speech
I have several NVDA pull requests lined up and/or are undergoing planning
phase, but due to SAPI4 issue and a host of other problems, I have informed
NV Access that I'll target most of my pull requests for 2021.2 or later. Put
it simply, I won't expect Sarah's suggestion to be worked on anytime soon.
From: firstname.lastname@example.org email@example.com On Behalf Of Luke Davis
Sent: Tuesday, April 13, 2021 3:51 PM
Subject: Re: [nvda] unable to disable add ons for a given config profile?
On Mon, 12 Apr 2021, Sarah k Alawami wrote:
look at maybe reassigning those until you can disable addons in a config
For the record (Joseph could speak much better about this), that seems very
unlikely to happen, and certainly not any time soon.
Some major portions of NVDA would have to be rewritten to facilitate it, and
there just isn't that kind of demand. Or, perhaps more accurately, there are
lots of things that are in much higher demand.
Now, I could see profile based gesture maps coming much sooner, which may
solve the kind of problem you are trying to address. Although I don't know
of any work currently being done in that area.
If you want that, comment about it here please:
"In this life there are obstacles, and forces who overcome obstacles. You
can be either one or the other.
If you refuse to even try to clear an obstacle, you become the obstacle."
- Joel Shepherd