tmux icon indicating copy to clipboard operation
tmux copied to clipboard

WSL/Debian - Weather - Location Unavailable

Open Erich-Chen opened this issue 3 weeks ago • 0 comments

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

Erich-Chen avatar Jun 21 '24 06:06 Erich-Chen