crabvk / bar-gmail

A Polybar module to show unread messages from Gmail
MIT License
90 stars 12 forks source link

Permission error after pasting the verification code #11

Closed tadec closed 4 years ago

tadec commented 4 years ago

Traceback (most recent call last): File "/home/tadec/.config/polybar/gmail/auth.py", line 25, in with open(CREDENTIALS_PATH, 'w') as creds_file: PermissionError: [Errno 13] Permission denied: '/home/tadec/.config/polybar/gmail/credentials.json'

Hi, I have trouble going through with the google verification, this is the message I get after pasting the verif code into my terminal. I suppose it's something trivial, but I have no clue how to solve this.

Thanks!

crabvk commented 4 years ago

Is /home/tadec your home directory?

bash -c 'if [ $HOME = "/home/tadec" ]; then echo yes; else echo no; fi'

If 'yes', then try to change permissions for ~/.config/polybar/gmail.

tadec commented 4 years ago

Thanks a lot and sorry for the dumb question issued, the permissions weren't set properly for that folder. Would you mind me asking, is there a way to make the script pull the number not from the whole inbox, but a specific label? As in primary, etc.

crabvk commented 4 years ago

No problem. Look at example and "Get list of all your mailbox labels".