Authentication fails because "x-github-desktop-dev-auth" URI scheme is not registered
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
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...
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: @.***>
Not sure what else to tweak within the package, but this file should contain the details needed (this MimeType field):
$ cat /usr/share/applications/github-desktop.desktop
[Desktop Entry]
Name=GitHub Desktop
Comment=Simple collaboration from your desktop
GenericName=GitHub Desktop
Exec=github-desktop %U
Icon=github-desktop
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;
MimeType=x-scheme-handler/x-github-client;x-scheme-handler/x-github-desktop-auth;x-scheme-handler/x-github-desktop-dev-auth;
And this registration should match the above file:
$ gio mime x-scheme-handler/x-github-desktop-dev-auth
Default application for “x-scheme-handler/x-github-desktop-dev-auth”: github-desktop.desktop
Registered applications:
github-desktop.desktop
Recommended applications:
github-desktop.desktop