diceware icon indicating copy to clipboard operation
diceware copied to clipboard

Add infile to options defaults

Open qha opened this issue 4 years ago • 6 comments

Add infile=None to OPTIONS_DEFAULTS in diceware/config.py to permit configuring custom word lists that are not installed in diceware/wordlists.

qha avatar Dec 08 '21 13:12 qha

I do not understand. None is already the default for the infile argument. Could you explain what is not working for you?

ulif avatar Dec 08 '21 14:12 ulif

get_config_dict only reads configuration settings that occur in defaults_dict, i take it that's why setting infile in .diceware.ini had no effect for me unlike other settings.

qha avatar Dec 08 '21 17:12 qha

Ok, so you want to use a different wordlist by default? The usual way to do this is putting the list into the local wordlist dir (displayed by --help). Is this an option for you?

ulif avatar Dec 08 '21 23:12 ulif

Sure, that is an option, i just prefer to keep my own configuration where i can write it without elevating my priveliges.

qha avatar Dec 09 '21 07:12 qha

Sure, that is an option, i just prefer to keep my own configuration where i can write it without elevating my priveliges.

How about if, instead, Diceware included ${XDG_DATA_HOME}/diceware/wordlists in its search for available wordlists?

drebs avatar Jul 29 '22 10:07 drebs

That sounds like it would accomplish everything i wished for when opening this ticket.

qha avatar Jul 29 '22 19:07 qha