Add command line parameter for silent installations to disable NVDA at the logon screen and enhance portable-path command line behavior#8623
Conversation
… path in the gui if applicable
|
Hate to question this further at this stage. But, I'm wondering if it might be more future proof to have this option as This means that the command line option remains useful if we ever change the default. It also allows people to be specific about their expectations on the command line (whether that is to enable or disable), rather than relying on the implicit default behaviour. |
|
I'm afraid having an enable command line parameter is problematic, as I
think argparse is able to store either True or False, not True, False or
None. In my opinion, enable-start-on-logon only makes sense if it really
enables start on logon in every case. This is certainly something to
explore though.
|
|
If we are able to be concrete about it and say the default is Otherwise, it looks like you can use a combination of Note that this appears to rely on casting the argument value to bool. But I don't think this should be a problem. |
|
@feerrenrut commented on 21 aug. 2018 05:36 CEST:
This works when throwing False or 0 at parse-args, but when providing 0 or False at the command line, it looks like it will still use the bool value of the string "0" or "False".
We can probably fix this with an easy function though: Then, use stringToBool as the type. |
…quires either True/False, Yes/No, On/Off, 1/0 as its value
|
If you make it optional, with a default of None what happens? |
|
@derekriemer commented on 26 aug. 2018 08:28 CEST:
I updated the description of the pr to reflect your question. |
|
@feerrenrut: I think I've addressed your concerns. A user can now provide enable-start-on-logon=True or --enable-start-on-logon=False to forcefully enable or disable starting at the logon screen when installing or updating. The default for --enable-start-on-logon is None, in which case the old behaviour applies (i.e. if updating, use the current value, else True) |
feerrenrut
left a comment
There was a problem hiding this comment.
Sorry, I forgot all about this PR. I'm generally happy with this, but have a suggestion to improve the user guide.
Co-Authored-By: leonardder <leonardder@users.noreply.github.com>
…r Account Control
|
Done, thanks for this. I added an additional sentence in the start at logon section. |
Link to issue number:
Fixes #8574
Summary of the issue:
--portable-pathcommand line parameter and creating a portable copy from the GUI, the provided portable path isn't shown in the gui as one might expect.Description of how this pull request fixes the issue:
--enable-start-on-logoncommand line parameter. It should be specified as--enable-start-on-logon=Trueor--enable-start-on-logon=False, just--enable-start-on-logonwill show an error message. Alternative supported values areyes/no,on/off,1/0(i.e. this option behaves asconfigobj boolean). NVDA's behaviour is to default this toTrue--portable-pathparameter is provided at NVDA start, the provided path is now pre-filled in in the portable copy creation dialog.Testing performed:
Ran try build.
--enable-start-on-logon=True: in the installation dialog, use NVDA on logon was enabled.--enable-start-on-logon=False: in the installation dialog, use NVDA on logon was disabled.--install-silentand--enable-start-on-logon=False. IN the copy of NVDA that ran after installation, start on logon was disabled in the general settings.--portable-path: the provided portable path showed up in the create portable copy dialog.Known issues with pull request:
None
Change log entry:
New features
--disable-start-on-logoncommand line parameter to allow silent installations of NVDA that don't run at the logon screen by default. (Add a command line parameter to disable start at logon screen for silent installations #8574)Changes
--portable-pathcommand line parameter, the provided path is automatically filled in when trying to create a portable copy of NVDA using the NVDA menu. (Add command line parameter for silent installations to disable NVDA at the logon screen and enhance portable-path command line behavior #8623)