bleakgrey / tootle

GTK-based Mastodon client for Linux
GNU General Public License v3.0
400 stars 61 forks source link

Account accessed, but not saved #334

Open gabuzom opened 3 years ago

gabuzom commented 3 years ago

When launching a freshly compiled tootle from master, on pinephone/postmarketOS/sxmo, i am offered the possibility to log in with an existing account. communication with the browser goes fine, i am "welcomed" and start browsing my timeline, yeah! \o/

.... except that when I close tootle, and launch it again, the account is gone :/ i have to register/authorize again

How to reproduce:

  1. Compile tootle from sources, on postmarketOS/sxmo/pinephone
  2. Register an account. welcome! use tootle...
  3. close tootle
  4. re-open tootle. account is gone :/

Is there any place i can look into? any process to monitor? any way of knowing what is happening and how to get useful output?

Build context:

Logs:

Message: 10:56:06.215: SecretAccountStore.vala:95: Saved secret for @xxxx@yyyyyyy Message: 10:56:06.216: SecretAccountStore.vala:53: Saved 1 accounts Message: 10:56:06.216: AccountStore.vala:85: Activating @xxx@yyyyyyy... Message: 10:56:06.216: Network.vala:49: GET: https://yyyyyy/api/v1/accounts/verify_credentials Message: 10:56:06.219: NewAccount.vala:168: Switching to account Message: 10:56:06.219: AccountStore.vala:85: Activating @xxx@yyyyyyy... Message: 10:56:06.219: Network.vala:49: GET: https://yyyyyyyyy/api/v1/accounts/verify_credentials Message: 10:56:06.303: InstanceAccount.vala:105: @xxx@yyyyyyy: profile updated Message: 10:56:06.478: InstanceAccount.vala:105: @xxx@yyyyyyy: profile updated Message: 10:56:09.897: NewAccount.vala:174: Received uri: tootle://auth_code?code=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz Message: 10:56:09.899: Application.vala:140: Presenting MainWindow Message: 10:56:09.943: Network.vala:49: GET: https://yyyyyyyy/system/accounts/avatars....

when opening tootle a second time:

Message: 10:56:57.332: Build.vala:41: Tootle 2.0-alpha2 Message: 10:56:57.332: Build.vala:41: Running on: postmarketOS edge Message: 10:56:57.332: Build.vala:41: Build prefix: "/usr" Message: 10:56:57.658: SecretAccountStore.vala:11: Using libsecret v0.20.4 Message: 10:56:57.671: SecretAccountStore.vala:45: Loaded 0 accounts Message: 10:56:57.671: AccountStore.vala:81: Reset active account ** Message: 10:56:57.671: Application.vala:134: Presenting NewAccount dialog

Additional info (if needed):

__ Tried with the release 2.0-alpha1, and it was segfaulting just when receiving the authorization back from the browser... so it's an improvement already.