ulif / diceware

Passphrases to remember
GNU General Public License v3.0
354 stars 45 forks source link

Add infile to options defaults #84

Closed qha closed 1 day ago

qha commented 2 years ago

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 2 years ago

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

qha commented 2 years ago

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 2 years ago

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 2 years ago

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

drebs commented 2 years ago

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 2 years ago

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