bleakgrey / tootle

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

Cannot generate code from flatpak installation #93

Closed lofidevops closed 5 years ago

lofidevops commented 6 years ago

I've installed Tootle from Flathub. On launch it prompts for an instance domain, then a code. I know my instance domain, but what "code" should I be providing? The tooltip just says "Paste your authorization code here".

Steps to reproduce:

What should happen:

What happens instead:

Gtk-Message: 12:22:08.078: Failed to load module "canberra-gtk-module"
Gtk-Message: 12:22:08.078: Failed to load module "canberra-gtk-module"
[INFO 12:22:08.078558] Application.vala:155: Tootle version: 0.1.5
[INFO 12:22:08.078580] Application.vala:157: Kernel version: 4.18.0-1-amd64
Gtk-Message: 12:22:08.131: GtkDialog mapped without a transient parent. This is discouraged.
[FATAL 12:22:11.170458] [GLib-GObject] g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[FATAL 12:22:17.222899] [GLib-GObject] g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[INFO 12:22:19.235060] NewAccountDialog.vala:136: Received tokens from https://mastodon.social
[INFO 12:22:19.235166] NewAccountDialog.vala:150: Requesting auth token
elegaanz commented 6 years ago

It should normally open a new tab in your web browser with the code to copy/paste, but I guess it is not working because of containerization…

lofidevops commented 6 years ago

Thanks for the explanation! I've upgraded (downgraded?) my query to a bug report.

cagatay-y commented 6 years ago

I can add accounts with the flatpak (container), the problem may be something else. Do you get an error message or something? There is a bug (#74) that causes a "Cannot resolve hostname" error when a instance URL starting with https:// is entered. There is a work around for it (https://github.com/bleakgrey/tootle/issues/74#issuecomment-423594945).

lofidevops commented 6 years ago

I've updated my original report with steps to reproduce the issue (using the workaround mentioned, thanks!), and a traceback.

lofidevops commented 5 years ago

Received a Flatpak update today (still seems to be marked 0.1.5). No significant change in the traceback (updated above).

What command-line test can I use that matches the mechanism used to open the browser? What URL should I be accessing?

If I'm reading the source correctly, I'm looking for a command-line equivalent of Desktop.open_uri("https://mastodon.social/oauth/authorize?parameters")

The following attempts work as expected:

lofidevops commented 5 years ago

The following attempt works:

...but the full URL (based on the source) fails:

...with an error in custom script on my side. I will look into this and see if I can reproduce on my side without the customisation.

lofidevops commented 5 years ago

This was an error in my custom script, unrelated to Tootle.