-
-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copying settings to secure screens doesn't warn when all add-ons are disabled #8418
Conversation
…s when they are all disabled.
Thanks for your pr. What worries me here is that this creates an inconsistency. When add-ons are force disabled, this code does not copy them at all, while as when some are disabled and others are enabled, all addons are still copied regardless of their state. |
Yes, I thought about this too, and my idea was that someone could use the feature of disabling add-ons precissely as a temporary way of indicating that they shouldn't be copied, without disabling it the next time NVDA is restarted. |
This may seem a silly question, but if using settings on secure screens, are
there any circumstances where anything but a synth add on is actually of any
consequence to the working of nvda on that screen?
If so why not disable all add ons which are not synths anyway and make the
copy smaller and presumably less of a security issue in any case.
Brian
|
@Brian1Gaff , not just add-ons containing syntesizer drivers could take effect in secure screens and may be copied. |
Now addonHandler.getRunningAddons() method is used instead. I have installed this snapshot of NVDA creating a launcher, and have made tests disabling various add-ons and all. |
Last commit not tested yet. |
.github/issue_template.md
Outdated
@@ -1,12 +1,34 @@ | |||
> Below you will find NVDA's Github issue template. You might consider swapping to the preview tab in order |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why this is in the diff, could you please merge most recent master?
source/config/__init__.py
Outdated
import addonHandler | ||
subDirs[:] = [addon.name for addon in addonHandler.getRunningAddons()] | ||
else: | ||
subDirs[:] = subDirs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is necessary.
source/gui/settingsDialogs.py
Outdated
runningAddons = [] | ||
for addon in addonHandler.getRunningAddons(): | ||
runningAddons.append(addon.manifest['summary']) | ||
if len(runningAddons)>0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can easily change this into something like:
if next(addonHandler.getRunningAddons(), None):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, that is actually ridiculous.
if any(addonHandler.getRunningAddons()):
will suffice
Thanks, @LeonarddeR. |
* This doesn't work as expected testing with an installed copy: no addon is copied. * (Suggested by @LeonarddeR). g
Now results are as follows:
Thanks |
Hi, Can you rebase this branch to master if possible? Or, we may need to start over from scratch due to #6275 and so many changes since then. Thanks. |
@josephsl, for now I see conflicts to fix in various files. I will get a look at this. |
@josephsl, you can test changes. Just a few lines need to be changed in gui/settingsDialogs after merging master into this branch. |
Hi, I think telling users that these add-ons are currently enabled might help, since it now checks if any add-ons are running i.e. enabled. Something to the effect of: The following add-ons are currently enabled. Eventually I think a dialog to choose individual add-ons to copy would build on top of this change. Also, when copying add-ons, copy only add-ons that are running if users said "yes" to the warning, but then again, I think a dialog described above may make things a bit easier. Thanks. |
@josephsl commented:
This was suggested by @LeonarddeR in issue #6305.
Maybe discussed, taking account as a drawback that pickle file will contain info for add-ons not copied, and that if the user configuration could be restored to the system configuration, the add-ons not copied couldn't be enabled later. |
Hi, Are we ready to get this PR going again? Thanks. |
We have decided to close this PR. We would like to see much deeper user control for how add-ons are copied to the system profile. A GUI should be introduced, allowing (but strongly discouraging) users to select which add-ons to use on the system profile. No add-ons should be selected by default. |
OK, thanks.
2020-07-03 10:05 GMT+02:00, Reef Turner <notifications@github.com>:
… We have decided to close this PR. We would like to see much deeper user
control for how add-ons are copied to the system profile. A GUI should be
introduced, allowing (but strongly discouraging) users to select which
add-ons to use on the system profile. No add-ons should be selected by
default.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#8418 (comment)
|
@cary-rowen, no, there is not any progress for now. Please see issue #11006 |
Link to issue number:
Fixes #8274
Summary of the issue:
NVDA shouldn't give a warning when users choose to copy settings for secure screens, if all add-ons are disabled.
Description of how this pull request fixes the issue:
We check if globalVars.appArgs.disableAddons is False (not globalVars.appArgs.disableAddons) to see if all add-ons are disabled. In this case, the for loop to check if directories contained in the user configuration folder aren't empty, in order to ask confirmation before copying settings, is not performed.
Testing performed:
Unit tests and run NVDA master with this pull request from source.
Due to an error with some libraries on the local computer, this snapshot hasn't been installed for a real test.
Known issues with pull request:
None.
Anyway, this could be improved:
Change log entry:
NVDA doesn't warn before copying settings for secure screens when all add-ons have been disabled.