-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL/Debian - Weather - Location Unavailable #271
Comments
Check now? We reworked the plugin a little bit to use a builtin TCP connection. |
@ethancedwards8 timeout() {
perl -e 'alarm shift; exec @ARGV' "$duration" "$@"
} I'd have to install coreutils package to have access to the timeout command but this is already adding dependency to a bash script. |
I had not considered that. If you would like to submit a PR to fix that, I will accept it. |
@ethancedwards8 sure! I can open a PR to fix it. xD |
@ethancedwards8 PR is open: #288 |
Describe the bug
The weather module displays "Location Unavailable" on WSL/Debian platform.
Cause
ping
does not work on WSL/Debian. Thusping -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
The text was updated successfully, but these errors were encountered: