Skip to content
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

hs.wifi.currentNetwork() return nil in macos 15.0 Sequoia #3697

Open
xumanbu opened this issue Sep 30, 2024 · 2 comments
Open

hs.wifi.currentNetwork() return nil in macos 15.0 Sequoia #3697

xumanbu opened this issue Sep 30, 2024 · 2 comments

Comments

@xumanbu
Copy link

xumanbu commented Sep 30, 2024

hs.hotkey.bind({"cmd", "alt", "ctrl"}, "W", function()
sid = hs.wifi.currentNetwork()
hs.alert.show(sid)
end)

image
@xumanbu xumanbu changed the title hs.wifi.currentNetwork() return nil in macos 15.0 macOS 15 Sequoia hs.wifi.currentNetwork() return nil in macos 15.0 Sequoia Sep 30, 2024
@Malakasd748
Copy link

I've encountered the same problem today, and I found this solution.

It works for me. After granting location permission to Hammerspoon, hs.wifi.currentNetwork() no longer returns nil.

@xumanbu
Copy link
Author

xumanbu commented Oct 10, 2024

I've encountered the same problem today, and I found this solution.

It works for me. After granting location permission to Hammerspoon, hs.wifi.currentNetwork() no longer returns nil.

Great! It works. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants