Hammerspoon / hammerspoon

Staggeringly powerful macOS desktop automation with Lua
http://www.hammerspoon.org
MIT License
12.15k stars 587 forks source link

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

Open xumanbu opened 1 month ago

xumanbu commented 1 month ago

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

image
Malakasd748 commented 1 month ago

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 commented 1 month ago

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.