davesteele / gnome-gmail

Integrate GMail into the Linux Desktop
https://davesteele.github.io/gnome-gmail/
GNU General Public License v2.0
50 stars 13 forks source link

gnome-gmail connects to gmail login, but google login requires 57-char code #77

Open Dewey902 opened 4 years ago

Dewey902 commented 4 years ago

Ubuntu 18.04, Peppermint10/LXDE

davesteele commented 4 years ago

GG has two strategies for collecting the OAuth information. If it is possible, it collects the "state" string from the title of the window you snapshotted. Otherwise, it sets up a server that the OAuth process must access.

It looks like it made the wrong decision on strategy for your LXDE environment. You could test this by modifying your source code get_urn() function to always return the http url. Look in /usr/share/gnome-gmail.

Let me know if you have success.

Dewey902 commented 4 years ago

Prior to getting your suggestion about get_urn() I had removed gnome-gmail and installed a couple other mail readers for Gmail in order to try them out.

Then in order to re-test the OAuth problem, I re-installed gnome-gmail, defined it as my lxsession email app -- and the gnome-gmail connection to my inbox worked (!). Don't know if: my initial gnome-gmail install was corrupted somehow; something about using the other email apps straightened out the auth between my laptop and my google account; or "other" :) Anyway, thank you for you response to my "problem", and I'll know what to try it if crops up again regards, Dewey.

On Feb 26 2020, at 2:49 pm, David Steele notifications@github.com wrote:

GG has two strategies for collecting the OAuth information. If it is possible, it collects the "state" string from the title of the window you snapshotted. Otherwise, it sets up a server that the OAuth process must access.

It looks like it made the wrong decision on strategy for your LXDE environment. You could test this by modifying your source code get_urn() (https://link.getmailspring.com/link/CD09C937-EC44-4769-9CF8-305897680ED8@getmailspring.com/0?redirect=https%3A%2F%2Fgithub.com%2Fdavesteele%2Fgnome-gmail%2Fblob%2Fmaster%2Fgnomegmail.py%23L203&recipient=cmVwbHkrQU9WS0ZRVDNFV1JMQUlBNFNTTTU0R040TVA3RjNFVkJOSEhDRUVMWk1ZQHJlcGx5LmdpdGh1Yi5jb20%3D) function to always return the http url. Look in /usr/share/gnome-gmail. Let me know if you have success. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://link.getmailspring.com/link/CD09C937-EC44-4769-9CF8-305897680ED8@getmailspring.com/1?redirect=https%3A%2F%2Fgithub.com%2Fdavesteele%2Fgnome-gmail%2Fissues%2F77%3Femail_source%3Dnotifications%26email_token%3DAOVKFQWF3NCSAITSB5VSUSTRE3BV3A5CNFSM4K4LJSLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENBUHJI%23issuecomment-591610789&recipient=cmVwbHkrQU9WS0ZRVDNFV1JMQUlBNFNTTTU0R040TVA3RjNFVkJOSEhDRUVMWk1ZQHJlcGx5LmdpdGh1Yi5jb20%3D), or unsubscribe (https://link.getmailspring.com/link/CD09C937-EC44-4769-9CF8-305897680ED8@getmailspring.com/2?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOVKFQSNIEOV5NKKEXHJMCDRE3BV3ANCNFSM4K4LJSLA&recipient=cmVwbHkrQU9WS0ZRVDNFV1JMQUlBNFNTTTU0R040TVA3RjNFVkJOSEhDRUVMWk1ZQHJlcGx5LmdpdGh1Yi5jb20%3D).