vitorgalvao / alfred-workflows

Collection of Alfred workflows
BSD 3-Clause "New" or "Revised" License
2.44k stars 167 forks source link

Does RunCommand work on Mac OS Big Sur? #125

Closed iwan-uschka closed 3 years ago

iwan-uschka commented 3 years ago

Setup info

Description of issue

It doesn't seem to work on my machine running macOS Big Sur. It does work on another machine running macOS Catalina (10.15.7).

I extracted the runcommand script and it works on both machines.

Debugger output

[12:10:49.916] RunCommand[Keyword] Processing complete
[12:10:49.917] RunCommand[Keyword] Passing output 'qrscan' to Run Script
[12:10:49.920] ERROR: RunCommand[Run Script] /bin/bash: ./runcommand: Permission denied
[12:10:49.921] RunCommand[Run Script] Processing complete
[12:10:49.921] RunCommand[Run Script] Passing output '' to Large Type

Hitting simply ENTER (without pressing CMD) results in

[12:30:12.006] RunCommand[Keyword] Processing complete
[12:30:12.007] RunCommand[Keyword] Passing output 'qrscan' to Run Script
[12:30:12.076] ERROR: RunCommand[Run Script] /bin/bash: ./runcommand: Permission denied
/bin/bash: line 13: ./Notificator.app/Contents/Resources/Scripts/notificator: Permission denied
[12:30:12.081] RunCommand[Run Script] Processing complete
[12:30:12.081] RunCommand[Run Script] Passing output '' to Run Script

I honestly don't know, why permissions are denied. The workflows (and other Alfred settings) are synced via nextcloud (Alfred.alfredpreferences) so both machines use the same workflow files.

Maybe i missed to enable some macOS security related stuff. I reinstalled Alfred without any luck.

vitorgalvao commented 3 years ago

Yes, it runs on Big Sur. If you go into the Workflow’s directory and ls -a, what do you get?

iwan-uschka commented 3 years ago

Jap. You're right. Just checked the workflow files and needed to chmod +x runcommand. Everything works now. Thanks for pointing me in the right direction 👍

iwan-uschka commented 3 years ago

Great workflow btw. :)