pub fn patterns_dir() -> PathBufExpand description
Get the directory containing user-defined patterns.
Returns <config dir>/oo/patterns (~/.config/oo/patterns on Linux,
~/Library/Application Support/oo/patterns on macOS), or OO_CONFIG_DIR/patterns
when OO_CONFIG_DIR is set.