gnome-gmail icon indicating copy to clipboard operation
gnome-gmail copied to clipboard

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

Open Dewey902 opened this issue 5 years ago • 2 comments

Ubuntu 18.04, Peppermint10/LXDE

  • gnome-gmail is defined as nemo "send to email" application

  • right-click send of a file does start a chromium session with my From: address

  • gmail login "succeeds" but requires me to save a 57-char auth code -- which I don't understand

  • where do I add this code? image

Dewey902 avatar Feb 26 '20 18:02 Dewey902

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.

davesteele avatar Feb 26 '20 19:02 davesteele

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 [email protected] 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/[email protected]/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/[email protected]/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/[email protected]/2?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOVKFQSNIEOV5NKKEXHJMCDRE3BV3ANCNFSM4K4LJSLA&recipient=cmVwbHkrQU9WS0ZRVDNFV1JMQUlBNFNTTTU0R040TVA3RjNFVkJOSEhDRUVMWk1ZQHJlcGx5LmdpdGh1Yi5jb20%3D).

Dewey902 avatar Mar 02 '20 00:03 Dewey902