#[SOLVED] Github Desktop Issue

431 messages · Page 1 of 1 (latest)

spiral plank
#

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... Sad

glacial estuary
#

Does the app react at all or does it just act like nothing happened at all?

spiral plank
#

It just takes me back to the app and nothing

glacial estuary
#

what browser are you using to login?

spiral plank
#

It runs on firefox

#

I tried it on chrome and it's still the same

glacial estuary
#

okay so not a browser problem then. check the logs on github desktop. is there any sort of authentication thing going on?

high breach
#

Are you running it under wine?

spiral plank
high breach
#

Then how are you

spiral plank
#

I use git clone .. and then makepkg -si

high breach
#

What AUR package

#

GitHub Desktop for Linux doesn’t exist to my knowledge

spiral plank
#

this one

glacial estuary
high breach
#

Oh

spiral plank
#

idk what to really do

glacial estuary
spiral plank
#

Url?

glacial estuary
#

maybe you don't have gnome-keyring?

#

it's the repo

spiral plank
#

i think i installed the package

#

do i need to setup it somehow??

glacial estuary
#

you could try the flatpak and see if that is any better

spiral plank
#

I'm new in linux tbh

#

I installed the gnome-keyring and libsecret package

glacial estuary
#

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

spiral plank
glacial estuary
#

just flatpak should do

#

and try to login in the flatpak

#

here's the link to it if you need btw:

spiral plank
#

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

glacial estuary
#

okay, so flatpak is not going to be as easy as i thought then

spiral plank
#

Sorry :D

glacial estuary
#

what de/wm are you using?

spiral plank
#

garuda linux

glacial estuary
#

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?

glacial estuary
#

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

spiral plank
#

not really

#

it want install some package

#

when i run github-desktop

glacial estuary
#

Does it just say not found?

spiral plank
#

yeah

#

not found locally

#

wait

#

i know why maybe KEKW

glacial estuary
#

You do?

spiral plank
#

yeah

#

give me sec

#

and sorry, i know it's pain with me KEKW

#

i can give you some donation if you fix it that's not a problem

glacial estuary
#

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.

spiral plank
#

You are good guy ❤️

#

Thank you

glacial estuary
#

It means you can type in literally any app you like and probably get an aur result directly from console.

#

.aw aur helper

spiral plank
#

So now i should sign in?

#

To see logs about it?

glacial estuary
#

Try it most that can happen is it wont work

spiral plank
#

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

glacial estuary
#

No, that's just video stuff, not related to authentication

#

Ok, let's take another step back

spiral plank
glacial estuary
#

First remove the pkg with pacman -R github-desktop

spiral plank
#

done

glacial estuary
#

Then let's try with an aur helper and see if that fixes it

spiral plank
#

wait

#

target not found

#

wtf KEKW

glacial estuary
#

It's because it was installed from aur i think

#

It's ok will get to it

spiral plank
#

i can remove it via some default app

#

give me sec

glacial estuary
#

Ok go for it

spiral plank
#

Yep, done now

#

What next?

glacial estuary
#

Nice!

#

So, aur helper-wise there's loads of variety but most people end up using either yay or paru

spiral plank
#

Okay?

glacial estuary
#

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

spiral plank
#

Okay sure, give me sec than

glacial estuary
#

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

spiral plank
#

Okay.

glacial estuary
#

After you get one of them you can install anything by typing the name of the helper and the app you want installed

glacial estuary
#

For instance earlier when i installed github desktop i just used yay github desktop and it gave me a list i could pick from

glacial estuary
#

Yeah essentially

spiral plank
#

And i installed yay too

glacial estuary
#

And if you want to update just yay works

spiral plank
#

it updates all packages?

glacial estuary
#

It updates from aur

spiral plank
#

or i need run yey works <name>

glacial estuary
#

Not the ones you got with pacman

spiral plank
#

Make sense

#

So what should i run now?

glacial estuary
#

No literally just run yay

#

And it updates

spiral plank
#

oooo

glacial estuary
#

Just run "yay github desktop"

spiral plank
#

Yup

#

Already done

#

just waiting now

glacial estuary
#

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

spiral plank
#

it gave me options

#

to select some package

#

idk what's the best tbh

spiral plank
glacial estuary
#

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

spiral plank
#

So maybe the -git is the best?

#

or maybe we should install official build

glacial estuary
#

Any of them should work i think

spiral plank
#

alr

#

installing now

#

done

#

what next? Hmm

glacial estuary
#

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

spiral plank
#

what is iirc

glacial estuary
#

If i recall correctly

spiral plank
#

oh

#

same issue

glacial estuary
#

Damn i thought i had it

spiral plank
#

maybe i can try login with chrome?

#

im using the firedragon now

glacial estuary
#

yout browser is asking to open the app after you login right?

spiral plank
#

nope

#

it will do itself

glacial estuary
#

what do you mean

spiral plank
#

first time I checked that it can open links from github without asking

glacial estuary
#

oh i see so you did get this at some point

spiral plank
#

yep

glacial estuary
#

weird i don't see what could be going wrong

spiral plank
#

and clicked on this

#

gg same issue with chrome

glacial estuary
#

maybe we can somehow login using devtools in the github desktop app

spiral plank
#

maybe this can help you?

glacial estuary
#

oh that's better

spiral plank
#

get this after i click on fetch button lol

glacial estuary
#

fetch button?

spiral plank
#

fetch origin

#

in repo

glacial estuary
#

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?

spiral plank
#

sure how?

#

just install the basic firefox?

#

and sign in ?

glacial estuary
#

you can just install it using pacman and then uninstall it using pacman -R if it doesn't work

#

yeah

glacial estuary
#

yeah yeah, pacman -S firefox

spiral plank
#

im using the app

#

octopi

#

for installing

glacial estuary
#

sure it's just a frontend

spiral plank
#

yep xd

#

it's running the pacman cmd anyway XD

#

...

slow hillBOT
#

Too few arguments for command note!
Usage: .note <name>

spiral plank
#

same issue

#

that is sooooooo weird

glacial estuary
#

damn, are you copying the link from firedragon to firefox and then logging in or just changing default browser

spiral plank
#

changing the default browser

glacial estuary
#

yeah that should work

#

very weird indeed

#

i mean you can delete firefox now if you like

spiral plank
#

yeah

#

but what about the issue

glacial estuary
#

hold on i'll do some googling, might be a majaro problem potentially?

spiral plank
#

idk tbh

#

i'm so lost KEKW

glacial estuary
#

have you ever logged in to anything else using a browser login ever since you installed linux?

spiral plank
#

nope

#

only via chrome/firefox now with you

#

wait

#

or what do you mean by "anything else"

glacial estuary
#

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

spiral plank
#

now sign in right?

glacial estuary
#

restart the app then try to sign in

spiral plank
#

I log in via browser

#

but it's not working

#

when i go to "File -> Options -> Settings" im still not logged in

glacial estuary
#

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

spiral plank
#

sure

#

thank you so much

glacial estuary
#

found it

spiral plank
glacial estuary
#

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?

spiral plank
#

no token

glacial estuary
#

FUCK

#

ok well at least we know what the problem is

#

your browser is just not sending the login request

spiral plank
#

but i tried it with chrome

#

and firefox

glacial estuary
#

this is what should have happened btw

spiral plank
#

should i try it with chrome now?

glacial estuary
#

you can if you want

#

does the popup appear with chrome/firefox or other browsers

spiral plank
#

so how else are we gonna solve this?

spiral plank
#

let me try it with chrome

#

to see what happen

glacial estuary
#

what does it want to open? it says allow github to open the "somethin" auth link

spiral plank
#

eh

#

with chrome:

glacial estuary
#

don't send the token

spiral plank
#

nono

#

only this pop up

#

with chrome

glacial estuary
#

i see

#

it doesn't seem like it's opening the wrong thing

spiral plank
#

open github desktop = no token in console KEKW

glacial estuary
#

let's see try this command instead: while sleep .1; do ps aux | grep oauth; done

spiral plank
#

do i need delete the site data again?

glacial estuary
#

nono

spiral plank
#

okay

glacial estuary
#

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

glacial estuary
#

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

spiral plank
#

no token

glacial estuary
#

ok. the login request is ppPoof

spiral plank
#

maybe the gnome-keyring?

glacial estuary
#

i don't think that's affecting it. the command we are running is system-wide

spiral plank
#

oh

glacial estuary
#

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

spiral plank
#

oh make sense

glacial estuary
#

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

spiral plank
#

so i need download firefox again

glacial estuary
#

nono

spiral plank
glacial estuary
#

your browser is a firefox fork right?

spiral plank
#

yeah

glacial estuary
#

it's got the same settings

spiral plank
#

alr

#

so let me try it

glacial estuary
#

from librewolf (another firefox fork)

spiral plank
#

i dont have zoommtg here

#

wait

glacial estuary
#

yeah, we don't want zoom we want github

spiral plank
#

yeah have it here

glacial estuary
#

change it to use app...

#

or use other.... sorry

spiral plank
#

yeah

#

done

#

wait

#

use other?

#

now always ask?

glacial estuary
#

we can try always ask

spiral plank
#

and now try login again?

glacial estuary
#

yeah go for it

spiral plank
#

i got stuck on the page

#

no pop no redirect

glacial estuary
#

auth token could be expired

#

click login again on github desktop

spiral plank
#

same issue

glacial estuary
#

so no allow this site blablabla popup?

spiral plank
#

nope

glacial estuary
#

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

spiral plank
#

i only have this two

glacial estuary
#

try disabling the plasma integration just for the sake of tests

#

don't think that's it though

spiral plank
#

same issue

#

but

#

when i refrash the settings page

#

the "always ask" is set for action

#

did it change on its own?

glacial estuary
#

OH very weird

#

let's try to go with the original plan

#

change to other app then make it /opt/github-desktop/github-desktop

spiral plank
#

what?

#

what other app

glacial estuary
#

use other in the applications page in your browser

spiral plank
#

it put me in the app but I'm not logged in

glacial estuary
#

okay, that's better though

#

because if it put you in the app

#

it means it sent a request

spiral plank
#

yeah

glacial estuary
#

while sleep .1; do ps aux | grep oauth | grep github; done

spiral plank
#

what is the .1 btw?

glacial estuary
#

basically every .1 seconds refresh

spiral plank
#

oh

#

okay xd

#

no log

glacial estuary
#

AAAAAAAAA

#

what the fuck

#

ok we can conclude

#

the request is being sent but with no token

#

for whatever reason

spiral plank
#

any fix for that?

glacial estuary
#

let's keep trying to find out what it's sending

spiral plank
#

what about the gnome-keyring

#

don't we want to set it up?

glacial estuary
#

it's not used

#

i don't have it installed

spiral plank
#

okay then

#

you're the boss here xdd

glacial estuary
#

in firefox, the content type on the settings page is x-github-desktop-dev-auth right?

spiral plank
#

in the applications?

glacial estuary
#

yeah

spiral plank
#

yep

glacial estuary
#

ok good

spiral plank
#

x-github-desktop-dev-auth

#

action: use other

glacial estuary
#

while sleep .1; do ps aux | grep x-github-desktop; done

spiral plank
#

no log

#

XD

#

only spaces KEKW

glacial estuary
#

the app is coming up right?

spiral plank
#

yep

glacial estuary
#

what is firefox doing

#

like wtf

spiral plank
#

not only firefox

#

it's the same for chrome

#

XD

glacial estuary
#

ok let me rephrase, what is x-github-desktop-auth doing

spiral plank
glacial estuary
#

it's just saying by the way, open the app smile

#

found something that could maybe work?

spiral plank
#

lets try it?

glacial estuary
#

i'm checking if we can get it first

spiral plank
#

I'll boost this server just because you're so willing AK_heart_bear

glacial estuary
#

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

glacial estuary
#

besides, you are the only open ticket that i can help atm

spiral plank
#

You are good person

#

I need to go now buddy, can we finish it tomorrow?

glacial estuary
#

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

spiral plank
#

Yeah, thank you so muc so far man!

glacial estuary
#

i'm sure it will help someone else in the future as well

spiral plank
#

Have a good night!

spiral plank
#

If we find the problem, you can do a gist

severe fulcrum
#

are you still unable to login?

spiral plank
#

Still having the same issue

glacial estuary
#

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
#
  1. Being the most recent
severe fulcrum
#

you use kde huh?

#

make sure you have the kde keyring and kwallet

spiral plank
severe fulcrum
#

sudo pacman -S kwallet

spiral plank
#

installed and same issue

severe fulcrum
#

well, did you restart after installing that?

spiral plank
#

restart pc?

severe fulcrum
#

yes

spiral plank
#

let me try it

#

MAN

#

IT'S WORKING

#

HAHGFHAG9A

#

Thank you soooooooooooooooooooooo much! ❤️

glacial estuary
#

really? it was that simple?

#

wtf

spiral plank
glacial estuary
#

it doesn't even say anywhere kdewallet is needed

spiral plank
#

Thank you so much for your time Luigi

glacial estuary
#

no worries!

#

... solved

slow hillBOT
#

#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

severe fulcrum
#

kwallet is the kde equivalent of that

glacial estuary
#

Fair enough i guess

#

Weird that it somehow affects requests from the browser

severe fulcrum
#

well yeah
authentication requests all go to the session's keyring daemon

#

otherwise authentication wouldn't be so safe