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

Big Sur #26

Open
fatlazycat opened this issue Nov 29, 2020 · 40 comments
Open

Big Sur #26

fatlazycat opened this issue Nov 29, 2020 · 40 comments

Comments

@fatlazycat
Copy link

Hi, anyone got this working in Big Sur at all ?

Have it working in Catalina following the advice in #25 but no luck with Big Sur.

Is it broken or just more macOS permission issues ?

Thanks

@iansinnott
Copy link
Owner

I'm still using this macro on a daily basis and everything is working great with the latest KM version. I'm still running on Catalina so I suspect it's a macOS issue.

@taylornd
Copy link

taylornd commented Dec 1, 2020

I can get it to run but not find any of the macros in KM...

@fatlazycat
Copy link
Author

@taylornd yeah that's where I get to as well

@timlawson-uk
Copy link

Any news on this using Big Sur? Keen to try it but have already upgraded so no going back!

@nikitavoloboev
Copy link
Collaborator

I use it on Bug Sur, no issues.

@taylornd
Copy link

taylornd commented Dec 7, 2020

I use it on Bug Sur, no issues.

Really? Have you changed anything or done anything to get it to work? I did a fresh install of everything and can get it to run but it doesn't find any macros...

@nikitavoloboev
Copy link
Collaborator

Check if you have these permissions:

image

Specifically KM permission to access Alfred 4.

If you don't see anything there, not sure how to manually add the permission.

@timlawson-uk
Copy link

It is working fine! Many thanks.

@taylornd
Copy link

taylornd commented Dec 7, 2020

Check if you have these permissions:

image

Specifically KM permission to access Alfred 4.

If you don't see anything there, not sure how to manually add the permission.

Interesting - I have Alfred to KM but not the other way around - anyone have any ideas on how to add..
Screenshot 2020-12-07 at 10 21 06

@taylornd
Copy link

taylornd commented Dec 7, 2020

Added Alfred but still not finding any macros

Screenshot 2020-12-07 at 11 47 07

@nikitavoloboev
Copy link
Collaborator

Can you share logs what happens when you search for macros?

[13:33:04.052] STDERR: Alfred Maestro[Script Filter] 🍺
13:33:03 workflow.go:307: ------- Alfred Maestro/0.2.2 (AwGo/0.17.0) -------
13:33:03 files.go:66: [ERROR] delete tempfile "~/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/iansinnott.keyboardmaestro/kmMacros699047446": remove /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/iansinnott.keyboardmaestro/kmMacros699047446: no such file or directory
13:33:03 feedback.go:441: Sent 572 result(s) to Alfred

Is what I get.

@taylornd
Copy link

taylornd commented Dec 7, 2020

Can you share logs what happens when you search for macros?

[13:33:04.052] STDERR: Alfred Maestro[Script Filter] 🍺
13:33:03 workflow.go:307: ------- Alfred Maestro/0.2.2 (AwGo/0.17.0) -------
13:33:03 files.go:66: [ERROR] delete tempfile "~/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/iansinnott.keyboardmaestro/kmMacros699047446": remove /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/iansinnott.keyboardmaestro/kmMacros699047446: no such file or directory
13:33:03 feedback.go:441: Sent 572 result(s) to Alfred

Is what I get.

I get the below. I think it is something to do with automation permissions but I need to find a way for Alfred/KM to request them. What does your Alfred automation permissions look like? e.g. I think it needs system events

[12:55:24.733] Logging Started...
[12:55:28.038] Alfred Maestro[Script Filter] Queuing argument ''
[12:55:34.275] Alfred Maestro[Script Filter] Queuing argument 'd'
[12:55:34.480] Alfred Maestro[Script Filter] Queuing argument 'dw'
[12:55:34.617] Alfred Maestro[Script Filter] Queuing argument 'dwd'
[12:55:36.838] Alfred Maestro[Script Filter] Queuing argument 'dwdg'
[12:55:37.032] Alfred Maestro[Script Filter] Queuing argument 'dwdgo'

@nikitavoloboev
Copy link
Collaborator

image

@taylornd
Copy link

taylornd commented Dec 7, 2020

Any idea how to get Alfred/KM to request access to system events?

@nikitavoloboev
Copy link
Collaborator

Don't know but someone at https://www.alfredforum.com might know or https://forum.keyboardmaestro.com/latest

@taylornd
Copy link

taylornd commented Dec 7, 2020

I get this error: alfred_workflow_bundleid is not set, alfred_workflow_cache is not set, alfred_workflow_data is not set

@taylornd
Copy link

taylornd commented Dec 7, 2020

What is strange is that an old version of this workflow seems to work fine.

@mattbowlby
Copy link

I just installed the workflow in Big Sur and it works fine.

@taylornd
Copy link

I just installed the workflow in Big Sur and it works fine.

do you have an M1 apple silicon machine?

@mattbowlby
Copy link

I just installed the workflow in Big Sur and it works fine.

do you have an M1 apple silicon machine?

No - I have a Hackintosh with an Intel i7 processor.

@almeco
Copy link

almeco commented Jan 8, 2021

m1 mac mini here and big sur - all required permission from above set but unfortunately it does not work. Same settings under old macbook pro 15 2017 and it work flawlessly.

Any clue?

@nikitavoloboev
Copy link
Collaborator

Any clue?

Perhaps try to recompile the go program yourself and run that?

@almeco
Copy link

almeco commented Jan 8, 2021

Any clue?

Perhaps try to recompile the go program yourself and run that?

How? I am not a programmer;) Any instructions?

@taylornd
Copy link

taylornd commented Jan 8, 2021

I think this is the issue - the go program doesn't work on apple silicon.

@Johannes5
Copy link

Johannes5 commented Jan 15, 2021

image

How can I make the other boxes appear?
I've got an M1 and the same problem.

@gitatmax
Copy link

gitatmax commented Feb 22, 2021

For anyone else struggling, what fixed it for me was installing the workflow, choosing Open in Finder from Alfred's preferences, and right-clicking the "keyboard-maestro" executable. Once I confirmed that I wanted to open it, I was able to run the workflow's command ("km"); it prompted me one more time, but now it's working great. :)

@taylornd
Copy link

Has anyone got this working with an M1 Mac?

@almeco
Copy link

almeco commented Feb 22, 2021

For anyone else struggling, what fixed it for me was installing the workflow, choosing Open in Finder from Alfred's preferences, and right-clicking the "keyboard-maestro" executable. Once I confirmed that I wanted to open it, I was able to run the workflow's command ("km"); it prompted me one more time, but now it's working great. :)

Damn. Does not work either for me;/

This is what I'm getting when clicking executable file:

exit;
panic: Invalid Workflow environment: alfred_workflow_bundleid is not set, alfred_workflow_cache is not set, alfred_workflow_data is not set

goroutine 1 [running]:
github.com/deanishe/awgo.NewFromEnv(0x0, 0x0, 0x0, 0x0, 0x0, 0x1102016)
	/Users/maltsev/dev/go/src/github.com/deanishe/awgo/workflow.go:146 +0x979
github.com/deanishe/awgo.New(...)
	/Users/maltsev/dev/go/src/github.com/deanishe/awgo/workflow.go:135
main.init.0()
	/Users/maltsev/dev/go/src/github.com/iansinnott/alfred-maestro/main.go:71 +0x38
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

Any idea?

@gitatmax
Copy link

gitatmax commented Mar 2, 2021

@almeco I can't confirm this now, but if I ever get my hands on an M1 I'll give it a try!

@Johannes5
Copy link

I’m using an M1 and I had the exact same issue.
After typing km, I got prompted to remove the workflow.

When executing the executable, I got the exact same message as @almeco , except that it ends with: Saving session...completed.

But now, while writing this I took another look at:
image
Turns out, Keyboard Maestro.app was unchecked.

Now it works

However I'm sure, the checkmark wasn't available when I tried to fix this a few weeks ago. I don't know what made it appear.

@taylornd
Copy link

taylornd commented Mar 3, 2021

Strange - I'm on M1 and Alfred has access to Keyboard Maestro but it still doesn't work

@ghost
Copy link

ghost commented May 10, 2021

For anyone else struggling, what fixed it for me was installing the workflow, choosing Open in Finder from Alfred's preferences, and right-clicking the "keyboard-maestro" executable. Once I confirmed that I wanted to open it, I was able to run the workflow's command ("km"); it prompted me one more time, but now it's working great. :)

Thanks for this - got mine working on a 2015 Catalina MacBook Pro where it was previously stuck in the permission loop. If anyone makes it to this step but still has errors - try holding down CMD while clicking open on this executable and it should get you set up.

@stevgouws
Copy link

Mine was not working on my old 2012 Macbook running Catelina, it just wouldn't trigger anything if I used km in Alfred.

I fixed it by downloading AlfredMaestro.alfredworkflow again from this repo, then running it which opened Alfred and I just selected Update.

image

I then tried to activate it again with km through Alfred,

The first time I just received this message (Notice no Open button):

Then went to Security and Privacy settings and clicked Allow Anyway

Then ran it again and got this pop up and which now had an Open button, so clicked it

Now all working fine.

@scottmartin
Copy link

For anyone else struggling, what fixed it for me was installing the workflow, choosing Open in Finder from Alfred's preferences, and right-clicking the "keyboard-maestro" executable. Once I confirmed that I wanted to open it, I was able to run the workflow's command ("km"); it prompted me one more time, but now it's working great. :)

This worked for me. However being on an M1 MacBook Air, I needed to install Rosetta 2 first. The Go binary doesn't run natively on Apple Silicon.

@pickerin
Copy link

Works fine for me in Monterey. You just need to validate the binary as "safe" since the developer cannot be verified.
It's stated elsewhere in this thread, but:

  1. Attempt to run it, you'll get an error that the developer cannot be verified, just click "Cancel"
  2. Immediately go into System Preference > Security & Privacy > General
  3. You'll see a message at the bottom of the screen, click "Allow Anyway"
  4. Go back and try to run it again, this time you'll see an option to "Open", do that and it works fine.

@Khoulaiz
Copy link

Khoulaiz commented Dec 9, 2021

If the above is not working for you (maybe you don't have the necessary admin rights since you might have a company notebook). Just clearing the quarantine flag from the workflow files (in a terminal with "xattr -d com.apple.quarantine *" in the workflow dir) solves the issue as well without admin rights.

@notDavid
Copy link

Fyi, if none of the above solutions work for you, this workflow may be a good alternative: https://www.thoughtasylum.com/alfred/alfred_conductor_for_keyboard_maestro/#download-conductor=

@Tele-Pet
Copy link

Tele-Pet commented Mar 7, 2023

Fyi, if none of the above solutions work for you, this workflow may be a good alternative: https://www.thoughtasylum.com/alfred/alfred_conductor_for_keyboard_maestro/#download-conductor=

This worked for my new Macbook Air M2 chip that's running Ventura (13.2.1). I did have to install Python 3, which it walked me through how to do.

@tillpaid
Copy link

For anyone else struggling, what fixed it for me was installing the workflow, choosing Open in Finder from Alfred's preferences, and right-clicking the "keyboard-maestro" executable. Once I confirmed that I wanted to open it, I was able to run the workflow's command ("km"); it prompted me one more time, but now it's working great. :)

You posted it two years ago, but it still helpful in 2023, thank you dude 🙇

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

17 participants