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

'Hammerspoon is not running' Error message when executing hammerspoon command from a cron in macos Sequoia 15.3 #3747

Open
bgmort opened this issue Feb 14, 2025 · 1 comment

Comments

@bgmort
Copy link

bgmort commented Feb 14, 2025

I have a cron that runs every 5 minutes to trigger a hammerspoon notification. After an update to macos Sequoia 15.3, when the cron runs, it frequently (but not always) causes this popup to show:

Hammerspoon is not running. Would you like to launch it now?

Warning popup showing text: 'Hammerspoon is not running. Would you like to launch it now?' with 'Cancel' and 'Launch' buttons

The command the cron runs is essentially this:

/opt/homebrew/bin/hs -c "hs.notify.new({title='Hello', subTitle='world', informativeText='text'})"

If I select Launch, then my notification is shown, and if I click cancel, it's not. But Hammerspoon is already running separately. It seems that it's unable to find the running process.

When I run the same command directly rather than as a cron, I never get the popup.

@dmgerman
Copy link

Run the script from a terminal (add a while true and inside a sleep and your hs command). If it does not fail, it is definitely the permissions.

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