Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't log into my account #1129

Open
AryFarah opened this issue Sep 16, 2024 · 4 comments
Open

Can't log into my account #1129

AryFarah opened this issue Sep 16, 2024 · 4 comments

Comments

@AryFarah
Copy link

The problem

When i click to log in with my github account, I'm redirected to github website confirm the login. But when i come back to Github Desktop, its not logged in my account. Why? Im using Ubuntu 24.2

Release version

Version 3.4.2-linux1 (x64)

Operating system

Linux Ubuntu 24.2

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

No response

Additional context

No response

@rong-xiaoli
Copy link

Same issue, no response, Debian 12 bookworm.
FastFetch

@konotorii
Copy link

Same issue on kubuntu 24.04

Screenshot_20240923_121446

@rong-xiaoli
Copy link

rong-xiaoli commented Sep 26, 2024

I guess it's not GitHub desktop's fault, I met the same problem with Unity Hub today, the Unity Hub didn't response to the login protocol. The Unity Hub protocol is: unityhub:// and GitHub desktop's protocol is neither supported.
Edit 1: got this thread: https://lists.fedoraproject.org/archives/list/[email protected]/thread/ZERZXDKGTJXBAEVMBTOAEI32EQ4VOK4L/
This thread is about the magnet URI things and almost the same issue, small difference is that magnet URI have a default application, but neither GitHub login URI nor Unity Hub URI have default application.
The thread is sooo long that it has made me headache. Suggest concluding the solution of the thread.

@rong-xiaoli
Copy link

I got a solution, but it's just a temporary one as it doesn't solve the basic issue.
You can login to GitHub like this:

Step 1: find the binary executable file of GitHub Desktop

For me it's in /usr/bin, so:

cd /usr/bin 

If the file isn't here, you can try:

whereis github-desktop

Step 2: login to GitHub

Execute a GitHub Desktop, be aware that a new window should be launched, or login process will fail, choose File - options - Accounts, choose sign in to GitHub.com, continue with browser.
Then a browser window should pop up, asking to login. After logging in, there should be You are being redirected to the authorized application., below this there's a please visit this setup page to continue. Copy the "the setup page" link, should be like this: x-github-desktop-dev-auth://oauth?code=somecodehereandsomethingelse.

Step 3: copy this and launch GitHub Desktop

Run this command in that terminal:

./github-desktop "x-github-desktop-dev-auth://oauth?code=somecodehereandsomethingelse"

Then you should find yourself logged in to the GitHub Desktop.

This method also works for Unity.

@konotorii @AryFarah This method should be useful for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants