fix line 6 patmenu2/FA-functions?.. CONFIG=~/.config/pat/config.json
the environment variable $XDG_CONFIG_HOME is empty in bookworm's environment its supposed to point to ~/.config using the ~ is fine in Debian's Bash it resolves to your home user folder. The hidden directory .config is inside of. its a scratch spot commonly used for configs. So if you incorrectly use CONFIG=$XDG_CONFIG_HOME/.config/pat/config.json it actually returns the value of /.config/pat/config.json which is no folder in / for .config
k