-
Notifications
You must be signed in to change notification settings - Fork 36
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
macOS window tracking broken? #128
Comments
I just installed this tool to try it out and I'm seeing the same behavior. There's a very real chance that I don't have my setup fully functional yet, but I can vouch that I also see this behavior. Here are my specs: MacBook Pro (15-inch, 2017) Do you have any tips for debugging? I'm willing to spend a bit of time looking into this, but I didn't see any debugging flags for |
My assumption is MacOS has changed in the last years, so this might require someone who knows the OSX APIs and Haskell to play around with the code in https://github.com/nomeata/arbtt/blob/master/src/Graphics/OSX/Window.hs |
I have a passing familiarity with Haskell and essentially no knowledge of OSX APIs. If I get some time to look into this I'll try, but no promises on any results 😉 |
I experienced this problem as well, and I figured out a fix! This apple dev forums page says that to get On Mac OS 11.4 (Big Sur) I added |
That's great news! So we just have to document this? Or is there a way for arbtt-capture to ask for these permissions? |
Good question! I'm not sure. From this stackoverflow answer, there should be a pretty simple way to request permissions. Only problem is: I'm not sure if it'll request permissions for Also, I'm not sure what program you'd need to grant permissions to if starting Related discussion on a separate project encountering a similar issue: lwouis/alt-tab-macos#33 I'm not sure if I'll look into this further in the future, so it's probably best to simply document for now, and add permissions-asking in the future once I/someone else decides to look into it. |
In #30 I was able to get a permission prompt for So I would say that if Otherwise, we would have to change the docs to include something like the steps listed in @LiamHz's comment in #30, i.e. request permissions for |
That would be my hope as well. So should I try to add a call like this to |
I would assume so. In the process I did in #30, the dialog indeed blocked the script, IIRC (but unfortunately I can't test that anymore because I no longer use a macbook). |
From my testing, it seems to no longer be possible on Monterey to use the
The write succeeded, but no effect on the daemon's ability to capture. Not sure why; my write to the DB does remain after re-enabling SIP. The script method does make running arbtt-capture in a terminal window trivial, but not as a daemon. Here is a JS example to request the permission—it was on the linked stackoverflow, so I'm guessing you have seen it already. I am in no way experienced with Haskell nor, more importantly for this situation, any of this macOS permissions nonsense, so I gave up there. However, I did find a good hacky way that uses intended macOS capability.
Clunky, but effective. The right approach here may be to feature this workaround in README or documentation somewhere rather than adding anything macOS-specific to the project itself. I'd be glad to write it up if you tell me where to do that :) |
Thanks for the offer! https://github.com/nomeata/arbtt/blob/master/doc/arbtt.xml is the source for the manual at http://arbtt.nomeata.de/doc/users_guide/index.html and probably the best place for additional instructions. |
Sad news: After a couple good days, my workaround doesn't consistently work either :( In a stunning turn of events, upon about the second restart, macOS seems to have forgotten my Automator app has the screen recording permission. I noticed Anyway, no pending documentation change until I get some time to dig deeper into this and hopefully fix it |
I manage to make this work with
Now check with This will probably break when you Hopefully this is applicable to other MacOS environments than nix-darwin! |
Original report by [email protected] (Bitbucket: asbreckenridge, ).
hey! i’ve just installed this on an Intel macOS 11.2.2 machine, arbtt-dump reads
The text was updated successfully, but these errors were encountered: