ulif/diceware

Add infile to options defaults

qha opened this issue · 6 comments

qha commented

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

ulif commented

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

qha commented

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.

ulif commented

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?

qha commented

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

drebs commented

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?

qha commented

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