-
Notifications
You must be signed in to change notification settings - Fork 37
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
auto-selfcontrol does not run on my Macbook #64
Comments
I wasn't able to test it on an M1 Mac yet, but I will in the next months. |
@andreasgrill that would be great! I think #59 also mentioned the same thing, so I guess for the new M1 Macs, the activation does not happen automatically. |
It has worked for me on my M1 mac just fine, until selfcontrol updated something. Now auto-selfcontrol doesn't trigger like you say |
It doesn't work on my MacBook anymore either, but it's NOT an M1. 2016 MBP, macOS 12.0.1 |
I also noted the same problems as #64 (comment) after I updated to MacOS 12.0.1 on a 2019 MacBook Pro (not an M1). |
@nadesai |
I have the same issue: I can activate auto-selfcontrol, but after running it won't re-activate according to schedule. I'm running it on a new MacBook Pro M1 with 12.1 (Monterey). Would be great if this could be resolved, thanks! |
I've looked into the issue, but I'm not sure how to solve it yet. I've tested this on an M1 Mac on macOS 12 Monterey, as well as on an Intel Mac on macOS 11 BigSur, both with SelfControl 4.0.2. If Auto-SelfControl is activated by schedule, it runs the SelfControl command-line methods, but it seems they don't have the necessary rights to install the SelfControl helper tool. That's what I got from the logs:
The problem could be that launchd, which is used to schedule Auto-SelfControl, starts the process without access to the UI. This could lead to the failed authorization – that's what I got from the logs. @cstigler what's your take on this. Do you also think this could be the problem and, if so, is there something that could be done in SelfControl or should we look into an alternative way to run schedules? |
Yes, I've also noticed the selfcontrol helper tool authentication (sometimes). Any news on how to fix this? Would be nice to have auto-scheduling capabilities... |
+1 on this I found this feature very useful 🙇 thx for all the hard work on this one everyone |
@nadesai sudo /Applications/SelfControl.app/Contents/MacOS/selfcontrol-cli --uid 501 start --blocklist ~/.config/auto-selfcontrol/blocklist --enddate 2022-02-12T19:30:26+0100 |
I know it's been previously suggested that SelfControl turn into a daemon that only needs one-time authentication (SelfControlApp/selfcontrol#500 (comment) contains some brainstorming) - not sure if the new security restrictions introduced by macOS 12 make even that approach impossible, though. |
Is this still being looked at? |
Given the issue of the authentication prompt, I changed the launchd plist from a Global Daemon to a User Agent (see https://www.launchd.info for more information), which at least leads me to be automatically prompted. Until the prompt is gone this works for me |
Hi! Any updates on the ARM Macs compatibility with auto-selfcontrol?! |
I had problems with python2, setup.py and the foundation module so made this- https://github.com/AlexanderDickie/auto-selfcontrol-rs , which should work on intel/apple silicon. I think its way easier to distribute via a binary instead of interpreted language. Like the comments above says, a launch agent works fine and I've added code to immediately relaunch the helper tool installation popup if you cancel it. |
I created Hammer Control which is a soft solution to this problem. It doesn't get rid of the authentication issue, but it makes it really annoying if you don't authenticate SC to start. Hopefully it makes you actually start the SC session instead of just canceling when the scheduled session starts. It's far from ideal, but it's better than nothing. EDIT: It now supports auto-inputting your password, so you don't have to manually. |
haha im about to add 'Mitigate hiding' to my version aswell. Im thinking about simulating keyboard input to just input the password automatically on the helper popup |
That's actually a great idea. I got it to work and it works great! There is a very quick flicker of the prompt, but there isn't much you can do about that. |
I am using a MacBook Air (M1, 2020) on Mac OS 12.0.1 (21A559). I can run
auto-selfcontrol activate
and it will prompt me for permissions and begin activating. However, it doesn't start based on the given schedule (ie the next day I still have to manually activate it). Isauto-selfcontrol
not compatible with the new Mac OS version or the new M1 chips? Thanks!!The text was updated successfully, but these errors were encountered: