shiftkey / desktop

Fork of GitHub Desktop to support various Linux distributions
MIT License
6.74k stars 511 forks source link

Authentication fails because "x-github-desktop-dev-auth" URI scheme is not registered #1106

Open celerizer opened 1 month ago

celerizer commented 1 month ago

The problem

Every time I install this program, authentication through the GitHub website is unable to complete because the URI scheme used to return to the Desktop program isn't registered to it.

I need to run this line on each install to get the website to return to the program and continue auth:

gio mime x-scheme-handler/x-github-desktop-dev-auth github-desktop.desktop

It might be useful to automatically register this URI scheme, or include a note in the FAQ that mentions this. Specifically, this screen and the associated hyperlink fails to do anything:

You are being redirected to the authorized application.

If your browser does not redirect you back, please visit this setup page to continue.

Release version

Version 3.3.12-linux2 (x64)

Operating system

Debian testing

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

No response

Additional context

No response

shiftkey commented 1 month ago

These should be listed in the for the deb package:

https://github.com/shiftkey/desktop/blob/bc04a8849fe9a6c707c27e63d1b20d0a972cd588/script/package-debian.ts#L79-L87

Which browser are you using? I've heard some weirdness with Firefox in the past but I'm not sure how exactly to connect these two together if that's the case...

celerizer commented 1 month ago

It was with Firefox, yes. I can try using a different browser the next time I set this up on a clean install

On Tue, Aug 6, 2024, 10:07 AM Brendan Forster @.***> wrote:

These should be listed in the package:

https://github.com/shiftkey/desktop/blob/bc04a8849fe9a6c707c27e63d1b20d0a972cd588/script/package-debian.ts#L79-L87

Which browser are you using? I've heard some weirdness with Firefox in the past but I'm not sure how exactly to connect these two together if that's the case...

— Reply to this email directly, view it on GitHub https://github.com/shiftkey/desktop/issues/1106#issuecomment-2271523653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5UPFWRPB23TROVVU4QVSTZQDRCJAVCNFSM6AAAAABLZOF3HSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZRGUZDGNRVGM . You are receiving this because you authored the thread.Message ID: @.***>