-
Notifications
You must be signed in to change notification settings - Fork 210
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
[Net widget] devices not passed to net_now #454
Comments
Keep it simple: to get the current network SSID, use a watcher. You can find examples here. To update the The reason why you get an empty devices array in You do not need this logging, just check if |
Thanks for the response.
To be sure, I just pasted function body to the place I called it, replaced all
The reason I wrote this logger is because it isn't populated in settings, but I wanted to be sure about it. Thanks for the watcher sollution but I'd like to stay with my own, mostly for educational purposes, and also I want it to be fired only when needed. I tried regularly polling that information, but nmcli sometimes is really slow and it resulted in freezes of whole awesome. |
I will try to replicate your issue.
I still suggest you to use $ iw dev wlan0 scan |
Hi,
I was trying to hack net widget a bit, to refetch network ssid every time new connection is acquired and I've noticed that net_now variable doesn't contain devices array. I've added simple logging to check what's going on, but I couldn't find why does it happen.
I've added some simple logging which shows that indeed net_now is not updated in the end. Here is a diff of my changes:
And here is a sample of output:
The text was updated successfully, but these errors were encountered: