pickups icon indicating copy to clipboard operation
pickups copied to clipboard

authorization token is not saved when hangups has never been called

Open okurz opened this issue 10 years ago • 2 comments

observation

When just calling pickups on a system where neither pickups or hangups have been called, pickups correctly asks for the authorization token but fails to save it:

WARNING:hangups.auth:Failed to save refresh_token:
[Errno 2] No such file or directory:
'/home/okurz/.cache/hangups/cookies.json'

problem

Subsequent calls request for new authorization tokens as the old one. pickups/hangups reports a helpful warning but should create the directory $HOME/.cache/hangups itself.

workaround

mkdir $HOME/.cache/hangups before calling pickups

okurz avatar Dec 07 '15 20:12 okurz

I saw this issue too, but this seems like an issue with the hangups code; as such I have created an issue there: tdryer/hangups#213

urandom2 avatar Feb 13 '16 18:02 urandom2

the hangups team appears to see this as a requirement at the application level, not the library level

urandom2 avatar Feb 21 '16 02:02 urandom2