[][src]Function lib_wordpass::get_default_filename

pub fn get_default_filename() -> Option<String>

Try to get a reasonable default word list. This will sometimes be effective on modern linux systems We look first in the user's config folder ($XDG_CONFIG_HOME) to see if there is a folder for wordpass. If so, and it contains a file words.txt, we use that. If not, we look for a system dictionary in /usr/share/dict/words Returns the filename for a dictionary if found, else None.