tmux
tmux copied to clipboard
WSL/Debian - Weather - Location Unavailable
Describe the bug
The weather module displays "Location Unavailable" on WSL/Debian platform.
Cause
ping
does not work on WSL/Debian. Thus ping -q -c 1 -W 1 ipinfo.io
fails.
Seeing Line 66 - 70 in https://github.com/dracula/tmux/blob/master/scripts/weather.sh, "Location Unavailable" displays.
Resolution
Referring to Issue #5109 for WSL, a workaround can be:
$ sudo setcap cap_net_raw+p /bin/ping
System
- OS: Debian 12 on WSL (Windows Subsystem Linux)
- Tmux Version: 3.3a