You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hammerspoon version 0.9.76 (5104)
macOS 10.15.1 (Catalina)
When Hammerspoon is set to be the default URL handler and the app icon is set to hidden, sometimes the app icon reappears when Hammerspoon is invoked as the URL handler. When this happens, opening the Hammerspoon preferences and enabling/disabling the corresponding option makes the app icon disappear again.
The following minimal init.lua serves to reproduce the problem:
function dispatchURL(scheme, host, params, fullUrl)
hs.printf("Dispatching URL '%s'", fullUrl)
hs.urlevent.openURLWithBundle(fullUrl, "com.google.Chrome")
end
hs.urlevent.httpCallback = dispatchURL
hs.urlevent.setDefaultHandler('http')
The puzzling part is that this seems to happen depending on the application from which the URL is invoked. Here's an informal and incomplete list of my experiments with some of the apps I use:
Happens when clicking on a URL in
Microsoft Outlook
Preview.app
Messages.app
Doesn't happen when clicking or opening a URL in
open terminal command
Microsoft Teams
Terminal.app (i.e. cmd-double-click on a URL in the Terminal)
Update: don't use this, as it steals focus from the current window every time the timer runs. I tried wrapping hs.dockicon.hide in a function that gets the current window and then focuses it afterwards, but the result seems to be the same.
Hammerspoon version 0.9.76 (5104)
macOS 10.15.1 (Catalina)
When Hammerspoon is set to be the default URL handler and the app icon is set to hidden, sometimes the app icon reappears when Hammerspoon is invoked as the URL handler. When this happens, opening the Hammerspoon preferences and enabling/disabling the corresponding option makes the app icon disappear again.
The following minimal
init.lua
serves to reproduce the problem:The puzzling part is that this seems to happen depending on the application from which the URL is invoked. Here's an informal and incomplete list of my experiments with some of the apps I use:
Happens when clicking on a URL in
Doesn't happen when clicking or opening a URL in
open
terminal commandThe text was updated successfully, but these errors were encountered: