alfred-github-stars icon indicating copy to clipboard operation
alfred-github-stars copied to clipboard

issues running on mac os montery

Open imalik8088 opened this issue 3 years ago • 1 comments

since update to mac os montery this workflow is not working bcz. macos has removed php. I've installed php but still it does not work

[11:51:43.336] Logging Started... [11:51:44.625] GitHub Stars[Script Filter] Queuing argument '' [11:51:44.692] GitHub Stars[Script Filter] Script with argv '(null)' finished [11:51:44.693] ERROR: GitHub Stars[Script Filter] Code 127: /bin/bash: php: command not found

my os: bash-3.2$ which php /usr/local/bin/php

I've also changed the script from php -f app.php ... to /usr/local/bin/php -f app.php but still it didnt worked

imalik8088 avatar Nov 25 '21 10:11 imalik8088

I have not yet upgraded to Montery, but I'm aware of the issue with PHP. I will probably just rewrite the Workflow in Python… though I can't say how soon I will get around to do it.

But since you installed PHP, I was under the impression, Alfred should recognize the installed PHP version (https://www.alfredapp.com/blog/releases/alfred-4-6-ready-for-macos-monterey/). Have you restarted Alfred / your Mac after installing PHP? Maybe it's a caching related issue. Maybe it doesn't work because it's actually a /bin/bash item in Alfred and not a PHP one?

If restarting does not help, it should work if you edit the "Script filter" item in the Workflow, double click it and change php -f app.php "{query}" in the script textarea to /usr/local/bin/php -f app.php "{query}", with absolut referencing there should be no issues I think.

stroebjo avatar Nov 27 '21 14:11 stroebjo