I installed the Ubisoft connect client and then tried to connect the account to Lutris through the connect button. The popup appeared and I logged in with prestored credentials and everything went normal, until the Webview was supposed to be redirected to connect_ubisoft_com/ready. The redirect happens automatically when doing the same in firefox. For some reason I can’t redirect the window even manually, therefore the whole process gets stuck on the loading animation which never finishes.
I downloaded Lutris directly from github in order to modify some code myself. While the javascript calls do get executed they have no effect, aka window_location_replace and window_location_href act as window_location_reload and even calling widget_load_uri(“https://connect_ubisoft_com/ready”) has no effect. Debugging is hard since the Webkit inspector doesn’t work.
I enabled developer extras and console to stdout and added some code myself, namely a print call in the on_navigation() after WebKit2_LoadEvent_FINISHED check with a counter (for the amount of times it was called), the url currently loaded and a load event log. After the second call (which is probably (unsuccessfully) automatically fired by the website) I tried manually invoking redirects using javascript and widget_load_uri(“https://connect_ubisoft_com/ready”), unsuccessfully. This is the log from ./bin/lutris -d: Ubuntu Pastebin
I admit to having no clue about what is going on, anything beyond some basic checks is beyond me. I though about manually obtaining credentials and storing them myself, but that would be a lot of work (reimplementing the whole login process) and it possibly wouldn’t even work.
Oh I also checked in with chatgpt and to noones suprise it has no clue either.
Thanks for your help
I had to replace all dots with underscores because I can only include 2 links in a post apparently.