andreasgrill / auto-selfcontrol

Small utility to schedule start and stop times of SelfControl
MIT License
305 stars 37 forks source link

Username 'MY_USERNAME' unknown. #34

Open vanh128 opened 5 years ago

vanh128 commented 5 years ago

Try to run it and get this error message. It suggests me using whoamito learn the username. However, it shows the same username I used for config. Specific below: Username 'anhnguyen' unknown. Please use your OSX username instead. If you have trouble finding it, just enter the command 'whoami' in your terminal. Anhs-MacBook-Pro:auto-selfcontrol-master anhnguyen$ whoami anhnguyen

Anyone has any ideas what is the problem?

slambert commented 5 years ago

Just for due diligence; make sure you don’t have any extra spaces, lookalike characters, missing characters, and that your quotes are correct. Copy and paste the whoami result just to be sure.

Post that line of the config here also so we can see.

vanh128 commented 5 years ago

Hi @slambert, here is the line of the config:

{ "username": "anhnguyen", "selfcontrol-path": "/Applications/SelfControl.app", "host-blacklist": [

and this is the result from whoami command:

Anhs-MacBook-Pro:~ anhnguyen$ whoami anhnguyen