Closed henricazottes closed 6 months ago
I've found this thread on reddit which says to change how the app is started by addind options like so:
$WINEPREFIX/drive_c/Riot Games/Riot Client/RiotClientServices.exe --launch-product=league_of_legends --launch-patchline=live
It seems it was integrated in the snap and then reverted with commit 2f8e889829c41de3f6b223091b11d8be60f0db0b.
Is it sure it's not causing chat problems ? (I'm not used to snap development, I can't try easily as file are read only)
That change caused issue #154, anyways I'll investigate this later today.
do you have old launcher or new one? chat seem to load fine here in client on fresh install.
I have the new one I guess, it looks like this :
Could you clarify your process for the fresh install? I may have done something wrong mixing how tos here and there. I tried to install it twice and had the same result in the end.
That's old launcher, try purge remove league snap then reinstall it.
snap remove --purge leagueoflegends
My process:
snap install --devmode --edge leagueoflegends
League of Legend
shortcut, a window opens with a loading, disappear and another one appear with region selection where I select EUW
for f in RiotClientServices.exe RiotClientCrashHandler.exe; do
sudo chmod 0 "$HOME/snap/leagueoflegends/common/.wine/drive_c/Riot Games/Riot Client/$f";
sudo chown root:root "$HOME/snap/leagueoflegends/common/.wine/drive_c/Riot Games/Riot Client/$f";
done
#!/bin/bash
process=LeagueClientUx.exe
uxpid=$(timeout 2m /bin/bash -c "until pidof ${process}; do sleep 1; done")
if [[ ! -n $uxpid ]]; then
echo "Could not find process ${process}"
exit 1
fi
echo "LeagueClientUx pid: ${uxpid}"
port=$(xargs -0 < /proc/${uxpid}/cmdline \
| sed -n 's/.*--app-port=\([[:digit:]]*\).*/\1/p')
if [[ ! -n $port ]]; then
echo "Could not find port"
exit 1
fi
echo "Waiting for port ${port}"
kill -STOP ${uxpid} timeout 5m /bin/bash -c " until openssl s_client -connect :${port} <<< Q > /dev/null 2>&1; do sleep 1 done" kill -CONT ${uxpid}
- It's silent until I run `League of Legend` shortcut again, then it outputs:
LeagueClientUx pid: 9773 Waiting for port 43335
- This time, this launcher appears:
![image](https://user-images.githubusercontent.com/5214384/99833919-15a7b080-2b63-11eb-9c1c-7a47fef7baf1.png)
- It asks to restart but waiting or clicking restart doesn't restart the launcher, so I log in and it start downloading the update:
![image](https://user-images.githubusercontent.com/5214384/99834108-5b647900-2b63-11eb-97e5-63caf859f218.png)
- Right now the chat is already broken:
![image](https://user-images.githubusercontent.com/5214384/99834155-6ddeb280-2b63-11eb-82e7-6f337adee6b0.png)
And it is like the other tries I made before : I wait for the update to finish but it doesn't fix the chat
This is not needed at all as new launcher works just fine and likely you are breaking it with this,
for f in RiotClientServices.exe RiotClientCrashHandler.exe; do
sudo chmod 0 "$HOME/snap/leagueoflegends/common/.wine/drive_c/Riot Games/Riot Client/$f";
sudo chown root:root "$HOME/snap/leagueoflegends/common/.wine/drive_c/Riot Games/Riot Client/$f";
done
Snap now ships this script and loads it as of todays update
Then run this script:
#!/bin/bash
process=LeagueClientUx.exe
uxpid=$(timeout 2m /bin/bash -c "until pidof ${process}; do sleep 1; done")
if [[ ! -n $uxpid ]]; then
echo "Could not find process ${process}"
exit 1
fi
echo "LeagueClientUx pid: ${uxpid}"
port=$(xargs -0 < /proc/${uxpid}/cmdline \
| sed -n 's/.*--app-port=\([[:digit:]]*\).*/\1/p')
if [[ ! -n $port ]]; then
echo "Could not find port"
exit 1
fi
echo "Waiting for port ${port}"
kill -STOP ${uxpid}
timeout 5m /bin/bash -c "
until openssl s_client -connect :${port} <<< Q > /dev/null 2>&1; do
sleep 1
done"
kill -CONT ${uxpid}
This was the missing information! I didn't know which launcher was the newer one, so I though I was on the right way when it was changing after running the script modifying right access.
Thanks a lot, I'm sorry it was such a dumb error. I'll do a PR to modify the readme and add a screenshot of the white launcher :)
Hi,
I've managed to install LoL on elementary os following this guide and applying this fix. However, it seems chat is not working, similar to #146 .
In the launcher, I have a message "You've been disconnected from chat, attempting to reconnect...". And in the logs, I get:
and
Launcher version is V10.23.343.2581.
Any idea how to fix this XMPP version error ? If you need more info/logs feel free to ask. And thanks for the job so far!