crabvk / bar-gmail

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

Issue with multiple accounts #38

Open christopherbruce opened 8 months ago

christopherbruce commented 8 months ago

It looks like it's (maybe?) pulling the unread count from the session.json file, which is being written by both instances, so when I have 1 email in "home" is is also showing 1 email in "work"

bar-gmail

I have generated two credentials files and configured my polybar modules like this (edited to remove styling)

[module/gmail-home]
type = custom/script
interval = 60
exec = bar-gmail -f polybar -b "" -cr home/credentials.json
click-left = ~/.config/i3/scripts/open_gmail_home

[module/gmail-work]
type = custom/script
interval = 60
exec = bar-gmail -f polybar -b "" -cr work/credentials.json
click-left = ~/.config/i3/scripts/open_gmail_work
crabvk commented 1 week ago

Sorry for long reply. This is a bug. Instead of path to credentials there should be an argument with path to cache directory.