Hey, I need help I'm using garuda-linux (arch based) and I can't log into the GitHub Desktop application, every time I click on Sign In I get a redirect to the browser and there I enable that I want to redirect back to the application but when it throws me back to the application I'm still not logged in, I've tried a lot of things to fix it but I still can't... 
#[SOLVED] Github Desktop Issue
431 messages · Page 1 of 1 (latest)
Does the app react at all or does it just act like nothing happened at all?
It act like nothing happened
It just takes me back to the app and nothing
what browser are you using to login?
FireDragon
It runs on firefox
I tried it on chrome and it's still the same
okay so not a browser problem then. check the logs on github desktop. is there any sort of authentication thing going on?
Are you running it under wine?
No
Then how are you
I use git clone .. and then makepkg -si
it's a fork: https://github.com/shiftkey/desktop/
Oh
idk what to really do
Url?
you mean gnome-keyring? the link to the arch wiki is this: https://wiki.archlinux.org/index.php/GNOME/Keyring#Using_the_keyring_outside_GNOME
you could try the flatpak and see if that is any better
Could you help me with the keyring?
I'm new in linux tbh
I installed the gnome-keyring and libsecret package
i could try, but I don't use any keyrings on linux. I have my own password manager
i think that before it's worth a try to download the flatpak and see if that just works
So I install flatpak and what else?
just flatpak should do
and try to login in the flatpak
here's the link to it if you need btw:
let me try it
[2:1120/212334.320753:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:1120/212334.320821:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
LaunchProcess: failed to execvp:
xdg-settings
LaunchProcess: failed to execvp:
xdg-settings
[41:1120/212337.198663:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[41:1120/212337.206244:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[41:1120/212338.768642:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!```
i get this when i run flatpak run io.github.shiftey.Desktop
@glacial estuary
okay, so flatpak is not going to be as easy as i thought then
Sorry :D
what de/wm are you using?
ok so kde
weird. I don't have gnome-keyring and I was able to login to the aur pkg no problem at all
let's take a step back
run github-desktop from the terminal and try to login
does it output anything or still no reaction?
huh?
If you open terminal and run github-desktop it will open the app and log things to console
Goes for any app you have installed in linux; for instance you can run firefox and it will log your whole instance of firefox to console
Does it just say not found?
You do?
yeah
give me sec
and sorry, i know it's pain with me 
i can give you some donation if you fix it that's not a problem
Not at all dont worry about it
Im here because i want to help
I think you mentioned earlier that you cloned and makepkg'd the app right? I would recommend you to get an aur helper instead.
What is aur helper? 
It means you can type in literally any app you like and probably get an aur result directly from console.
.aw aur helper
AUR helper
Done
So now i should sign in?
To see logs about it?
Try it most that can happen is it wont work
No log
╰─λ github-desktop
[124332:1120/215641.138884:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[124332:1120/215642.499567:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[124332:1120/215647.942181:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
Only this
No, that's just video stuff, not related to authentication
Ok, let's take another step back
I just tried to log in and it didn't log anything haha
Ikik
First remove the pkg with pacman -R github-desktop
done
Then let's try with an aur helper and see if that fixes it
Ok go for it
Nice!
So, aur helper-wise there's loads of variety but most people end up using either yay or paru
Okay?
They are almost the same as well, I prefer yay because the command is easier to remember particularly
If you look at the archwiki you can see the differences between them
To install one of them you do the same as you did with github desktop. You clone it from the aur and makepkg -si
Okay sure, give me sec than
But once you do that you never have to manually go and clone stuff and makepkg it unless you want to or there's no script in the aur
Okay.
After you get one of them you can install anything by typing the name of the helper and the app you want installed
Done now
For instance earlier when i installed github desktop i just used yay github desktop and it gave me a list i could pick from
so for example only yay /gay?
That's usuful package
Yeah essentially
And i installed yay too
And if you want to update just yay works
it updates all packages?
It updates from aur
or i need run yey works <name>
Not the ones you got with pacman
oooo
Try getting github desktop from yay. It will handle everything for you
Just run "yay github desktop"
Nice! Whenever i want something that's not on pacman i tend to just check if its in yay before googling github repos and things
It's much easier but I haven't read or heard of this package anywhere
So, packagename-git is the latest commit from repo, packagename-bin is the latest official build and packagename should be latest build as well iirc
Any of them should work i think
Main difference is that stuff is precompiled with -bin so it means that if you are downloading a web browser that or something that takes ages to compile you dont havr to wait through it
Just run it and try to login
At least iirc
what is iirc
If i recall correctly
Damn i thought i had it
yout browser is asking to open the app after you login right?
what do you mean
first time I checked that it can open links from github without asking
oh i see so you did get this at some point
yep
weird i don't see what could be going wrong
maybe we can somehow login using devtools in the github desktop app
oh that's better
get this after i click on fetch button lol
fetch button?
some people seem to have a similar problem with slack desktop and apparently just using plain firefox fixed it for them
maybe worth a try?
you can just install it using pacman and then uninstall it using pacman -R if it doesn't work
yeah
wdym?
the firefox right?
yeah yeah, pacman -S firefox
sure it's just a frontend
Too few arguments for command note!
Usage: .note <name>
damn, are you copying the link from firedragon to firefox and then logging in or just changing default browser
changing the default browser
yeah that should work
very weird indeed
i mean you can delete firefox now if you like
hold on i'll do some googling, might be a majaro problem potentially?
have you ever logged in to anything else using a browser login ever since you installed linux?
nope
only via chrome/firefox now with you
wait
or what do you mean by "anything else"
hold on maybe i got a lead?
press control shift I in the github app, it will open devtools
go into application, storage and clear the site data
now sign in right?
restart the app then try to sign in
I log in via browser
but it's not working
when i go to "File -> Options -> Settings" im still not logged in

hold on i'm doing some incredible debugging to see if i can find something
if that something can be found we have a chance
found it

run this command in terminal
while sleep .1; do ps aux | grep oauth | grep github; done
then try to login
it should, in theory come up with a couple requests and in them there will be an oauth token
we good so far or no token?
no token
FUCK
ok well at least we know what the problem is
your browser is just not sending the login request
this is what should have happened btw
should i try it with chrome now?
so how else are we gonna solve this?
yes
let me try it with chrome
to see what happen
what does it want to open? it says allow github to open the "somethin" auth link
don't send the token
open github desktop = no token in console 
let's see try this command instead: while sleep .1; do ps aux | grep oauth; done
do i need delete the site data again?
nono
okay
we're trying to find if the token is being sent anywhere at all
you should be able to refresh the page btw, you don't have to login again
no token
oh ty 
this one? while sleep .1; do ps aux | grep ://; done
if there's no token with this one we can conclude that it's going to limbo
ok. the login request is 
i don't think that's affecting it. the command we are running is system-wide
oh
for instance, if you run just while sleep .1; do ps aux; done
you will see everything
the | grep | things just filter it to what we need
oh make sense
hold on i found a thread
In the settings/general tab in firefox, I scrolled down to Applications and found the entry for “zoommtg”. Then I changed the zoommtg application preference from “always ask” to the zoomLauncher executable in my flatpack directory. For me this was /var/lib/flatpak/app/us.zoom.Zoom/x86_64/stable/c3fb82e300cdf0eb0f9040e4d72372e8f1c0a2d5d5be7f67dca3ede4a16665d0/files/extra/zoom/ZoomLauncher
If you installed zoom via flatpack you should find it via file search.
After making this change, the dialog appears as normal when launching zoom via link.```
maybe we could adapt this
nono

your browser is a firefox fork right?
yeah
it's got the same settings
yeah, we don't want zoom we want github
yeah have it here
we can try always ask
and now try login again?
yeah go for it
so no allow this site blablabla popup?
hmm very strange
do you have any extensions that could be preventing a redirect or something like that?
i mean considering it doesn't work with other browsers it's probably not the issue
try disabling the plasma integration just for the sake of tests
don't think that's it though
same issue
but
when i refrash the settings page
the "always ask" is set for action
did it change on its own?
OH very weird
let's try to go with the original plan
change to other app then make it /opt/github-desktop/github-desktop
use other in the applications page in your browser
okay, that's better though
because if it put you in the app
it means it sent a request
yeah
while sleep .1; do ps aux | grep oauth | grep github; done
what is the .1 btw?
basically every .1 seconds refresh
AAAAAAAAA
what the fuck
ok we can conclude
the request is being sent but with no token
for whatever reason
any fix for that?
let's keep trying to find out what it's sending
in firefox, the content type on the settings page is x-github-desktop-dev-auth right?
in the applications?
yeah
yep
ok good
while sleep .1; do ps aux | grep x-github-desktop; done
the app is coming up right?
yep
ok let me rephrase, what is x-github-desktop-auth doing

it's just saying by the way, open the app 
found something that could maybe work?
lets try it?
i'm checking if we can get it first
I'll boost this server just because you're so willing 
i found where the app stores the token, but i need to see whether or not we can extract the server from the auth thing
not everybody is like me though 🙂
besides, you are the only open ticket that i can help atm
That's bad :(
You are good person
I need to go now buddy, can we finish it tomorrow?
sure i'm gonna go to sleep soon as well
i'll do some digging and see if i can find some alternative way to login
Yeah, thank you so muc so far man!
i'm sure it will help someone else in the future as well
Have a good night!
Yeah for sure!
If we find the problem, you can do a gist
are you still unable to login?
I made this shortlist of what i could find
# GITHUB DESKTOP POSSIBILITIES
1. APPLICATION PRIVILEDGE
2. https://github.com/desktop/desktop/issues/12199#issuecomment-840456210
3. https://github.com/shiftkey/desktop/issues/632#issuecomment-1049889000
- Being the most recent
So what should I try?
how to setup this?
sudo pacman -S kwallet
installed and same issue
well, did you restart after installing that?
restart pc?
yes
no :d
let me try it
MAN
IT'S WORKING
HAHGFHAG9A
Thank you soooooooooooooooooooooo much! ❤️

it doesn't even say anywhere kdewallet is needed
Thank you so much for your time Luigi
#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.
- You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
- You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".
Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you
it doesn't, but it needs gnome-keyring they said right
kwallet is the kde equivalent of that

