minecraft-linux / mcpelauncher-manifest

The main repository for the Linux and Mac OS Bedrock edition Minecraft launcher.
https://minecraft-linux.github.io
GNU General Public License v3.0
957 stars 99 forks source link

Add a proxy option #486

Open Blue-Beaker opened 3 years ago

Blue-Beaker commented 3 years ago

Please a proxy option for users that can't access google directly and must use a proxy. proxy environment variables doesn't work, and proxychains causes bugs.

chewi commented 2 years ago

I found that the Google bits and the launcher itself work fine with setting https_proxy like usual. It's the game that has trouble. It fails at the piracy check. proxychains doesn't help.

I'm not entirely surprised though, Java edition doesn't work either, even when passing additional JVM arguments. proxychains doesn't work there because it's ineffective against Java. I've therefore had to put in a special rule for Minecraft to bypass the firewall.

ChristopherHX commented 2 years ago

It fails at the piracy check

You mean the check of release v0.3.0 for 1.17.40+? The old check used curl and should work for proxies. Thank you for confirming that setting proxy env variables is working for the GUI, I was to lazy to setting up a proxy and test it myself.

I published the code, feel free to remove the playapi calls and put the .so file into your launcher mods folder https://github.com/minecraft-linux/mcpelauncher-updates, then proxies should work.

I'm no longer working on it. Some linux anti drm folks are too hostile for me, after 2 years of maintaining this launcher.

chewi commented 2 years ago

Yes, the 1.17.40+ check.

I'm not too familiar with how the project all fits together. I tried it once years ago, and set it up for my daughter last weekend. She's very happy. The proxy is for her safety, but excluding Minecraft from it is safe enough, so happy to continue with my workaround.

I'm not sure if you're saying you're stepping away from the entire project. I found the chat on Discord that I think you're referring to. Sadly there'll always be vocal idiots in the community, not least on Discord. I recommend just keeping your head down and doing what you think is best. Whether you're stepping away or not, many thanks for all your hard work. This Microsoft employee actually appreciates it! :smile: