Not able to sign in
The problem
At the welcome page, click on the "Sign in to GitHub.com" button, approve it on the web page. No reaction after that. The spinner in the button keeps going.
Release version
3.0.6-linux1
Operating system
Ubuntu 22.04
Steps to reproduce the behavior
1, At the welcome page, click on the "Sign in to GitHub.com" button, 2, approve it on the web page of github.
No reaction after that. The spinner in the button keeps going.
Log files
2022-10-02.desktop.production.log
Screenshots
No response
Additional context
There are error in console:
$ ./GitHubDesktop-linux-3.0.6-linux1.AppImage libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [267574:1001/171619.934140:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. [267574:1001/171622.799074:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times! [267574:1001/171624.146379:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times! [267574:1001/171802.589885:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
Same thing here. Using Mint and tried it with Firefox, Chrome and Brave. Nothing works.
I also tried the versions of 3.0.5 and 2.9.15 in the same Ubuntu 22.04 system. Same result.
same result here
@exen904 @rolia-net the log files you provided are interesting, and I wonder if the protocol handlers we use to register GitHub Desktop are broken for you:
https://github.com/shiftkey/desktop/blob/8d9add2d7ec25d9d760ce856882c8df416ca1555/script/package-debian.ts#L78-L86
Which browser are you using to sign in?
The other variable is which installer is being used - AppImage has some known problems like #542 that I'm not sure how to fix...
@shiftkey I was using Chrome. I downloaded the AppImage files. Didn't know any other way to install in Ubuntu 22.04.
@shiftkey I was using Firefox. Apparently that was my issue, not something of the app. I completely forgot about the GitHub Mobile app where I was notified to act as 2FA. Worked just fine after that. Sorry for the wrong call there
@rolia-net I'd recommend using the deb installers in our docs: https://github.com/shiftkey/desktop#debianubuntu-distributions
I am having the same issue with Waterfox browser (fork of Firefox). This doesn't happen when Waterfox is already opened, and then Sign In button is clicked.
Note that I am running the appimage as root using command line option --no-sandbox.
I have the same issue. On my office computer I have:
- Kubuntu 18.04
- Firefox 107.0
- The AppImage version of GitHub Desktop 3.1.1-linux1
- no root access
- no other browser than Firefox
After reloading the login page a couple of times, it gives me the option to log in to Github, but then I get stuck with the x-github-desktop-dev-auth://oauth?... link which does not do anything.
Is there a way to enter the auth code manually somewhere? Or a tip how to set up the mime-types manually for Firefox?
For me, the base problem i think i had was that the mime types were not set up.
So, i tried was to register the mime types manually for GitHub Desktop and it worked.
First I looked for a file named github-desktop.desktop which i found in ~/.local/share/applications
For reference, the file looked like:
[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;
Path=
Terminal=false
Then, i ran the commands (in ~/.local/share/applications working directory):
xdg-mime default github-desktop.desktop x-scheme-handler/x-github-client
xdg-mime default github-desktop.desktop x-scheme-handler/x-github-desktop-auth
xdg-mime default github-desktop.desktop x-scheme-handler/x-github-desktop-dev-auth
Reference: https://unix.stackexchange.com/questions/497146/create-a-custom-url-protocol-handler
For me, the base problem i think i had was that the mime types were not set up.
Perfect. This was the problem for me. That fixed it. Thanks a million!
For me, the base problem i think i had was that the mime types were not set up.
Unfortunately not helping with the AppImage version.
I tried by adding
Exec=~/path/to/GitHubDesktop.AppImage %u
to the .desktop file and running the xdg-mime commands.
Opening the auth link (x-github-desktop-dev-auth://oauth?...) via xdg-open does run GitHub Desktop now, but it does not log in. I assume the URL is not passed on correctly?
I think the best workaround would be an alternative option to enter the authorization code manually instead of waiting for reply from the browser.
For me, the base problem i think i had was that the mime types were not set up.
So, i tried was to register the mime types manually for GitHub Desktop and it worked.
First I looked for a file named
github-desktop.desktopwhich i found in~/.local/share/applicationsFor reference, the file looked like:[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; Path= Terminal=falseThen, i ran the commands (in
~/.local/share/applicationsworking directory):xdg-mime default github-desktop.desktop x-scheme-handler/x-github-client xdg-mime default github-desktop.desktop x-scheme-handler/x-github-desktop-auth xdg-mime default github-desktop.desktop x-scheme-handler/x-github-desktop-dev-authReference: https://unix.stackexchange.com/questions/497146/create-a-custom-url-protocol-handler
This worked for me too... thank you
xdg-mime default github-desktop.desktop x-scheme-handler/x-github-desktop-dev-auth
Perfect for me. I lost a day before finding your solution: THANKS A LOT!
Linuxmint 21.1 and all the version of github-desktop from 2.6.5 to 3.2.0
I think the best workaround would be an alternative option to enter the authorization code manually instead of waiting for reply from the browser.
This would be amazing...
Having these issues with v3.3.10 on WSL (it was working last Friday - yes I use it under WSL because husky) and the workarounds do not work for me... Just get the icon spinning forever.
DevConsole only says "[SignInStore] initializing OAuth flow"
EDIT: In my case, I fixed it by using a non-snap browser. It looks like when we install chromium or firefox from apt-get, Ubuntu will install a snap version, which runs isolated in a sandbox and cannot communicate with the Github Desktop app. Installing Google Chrome from the official website using dpkg solved it.
I also am unable to login. The sign-in button does nothing. Installed with wget. Ubuntu 22.04.
I also am unable to login. The sign-in button does nothing. Installed with wget. Ubuntu 22.04.
I ran these commands (not all worked but can't remember which ones failed) and then after I was able to authenticate:
sudo systemctl start dbus sudo systemctl enable dbus sudo apt install libcanberra-gtk-module libcanberra-gtk3-module sudo apt install xdg-utils sudo apt install vulkan-utils