-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
wifi_change
event does not supply the SSID on Sonoma
#407
Comments
Quick search gave me this answer. I modified INFO="$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | awk -F' SSID: ' '/ SSID: / {print $2}')" |
I have added a note to the docs that this event is somewhat broken on Sonoma. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Updating to HEAD did fix the event firing issue, modification to the plugin script works really well. Not sure how you could implement those shell script commands into C (if you even want to), but I appreciate the work. Been having fun messing around with this! |
The command above stopped working for me after upgrading my system to Sonoma 14.4: $ /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I
WARNING: The airport command line tool is deprecated and will be removed in a future release.
For diagnosing Wi-Fi related issues, use the Wireless Diagnostics app or wdutil command line tool. and In case anyone had a similar problem as above, here is a simple fix that I found: https://stackoverflow.com/a/8542420 TL;DR: Use INFO="$(networksetup -listallhardwareports | awk '/Wi-Fi/{getline; print $2}' | xargs networksetup -getairportnetwork | sed "s/Current Wi-Fi Network: //")" if |
This is a privacy protecting measure by apple, since the SSID could be used by a rouge application to reveal your location. This is why they decided to make the SSID only available if the app requesting it has location permissions. I don't want to ask for location permissions for this feature, so it would probably be best to just remove the
$INFO
field for this event, or replace it by something else instead.Although there are other ways to retrieve the SSID for now, this is clearly unwanted and likely to break in future updates.
The text was updated successfully, but these errors were encountered: