greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.88k stars 475 forks source link

Turned off network adapter results in error message #633

Closed gabm closed 4 years ago

gabm commented 4 years ago

When i turn of the wifi via software wifi off, then I get an error:

Error in block 'net': failed to read /sys/class/net/wlp0s20f3/carrier

I can't seem to read that pseudo-file manually, so its not really i3status-rusts fault. But: what can I do?

I found this: https://unix.stackexchange.com/questions/252002/help-testing-special-file-in-sys-class-net

ammgws commented 4 years ago

Ok so looks like that file is unreadable when the interface is disabled. I just pushed a fix - please see if it works for you.

gabm commented 4 years ago

That seems to work. thank you for the fast fix!