This can be solved by setting the DISPLAY environment variable in your shell’s config file (e.g. ~/.zshrc and /etc/zsh/zprofile if using zsh):
export DISPLAY=$(ip route | grep default | awk '{print $3; exit;}'):0.0
This can be solved by setting the DISPLAY environment variable in your shell’s config file (e.g. ~/.zshrc and /etc/zsh/zprofile if using zsh):
export DISPLAY=$(ip route | grep default | awk '{print $3; exit;}'):0.0