Closed haji-ali closed 1 year ago
It is okay to throw an error if the file is not found. That's better than silently bailing out. Just set the variable to another file which exists on your system. However we could do a bit better with the default setting and try different common paths for various OSes. Any suggestions for paths we should try?
On MacOS, the file is /usr/share/dict/words
so I think it should be tried as well.
In Ubuntu, the file /etc/dictionaries-common/words
seems to be a symlink to a file in /usr/share/dict/
. I am not sure about other systems.
It seems /usr/share/dict/words exists on Debian too, so it seems to be a better default value which works across more systems (Linux, BSDs, Mac).
The variable
cape-dict-file
holds the value/etc/dictionaries-common/words
which does not exist on my systems (CentOS 7 and Mac OS) hence I keep getting these errors.This seems to be a Debian package. What should variable be set to in other systems? Also, I suggest that the definition is changed as follows
and