Because I REALLY had nothing better to do with my life.
A version of Minecraft >= 1.13
MultiMC (or derivatives) (optional)
-Dorg.lwjgl.glfw.libname=/usr/lib/libglfw.so
A distro with a patched GLFW package
.patch
files in this repo alreadycaps:swapescape
) will
require you to use the original keylibdecoration
branch for GNOME specific fixes or download
an unofficial package listed below (until a new GLFW version releases)
Go to Settings
> Minecraft
, and enable Use system installation of GLFW
.
If you have a Wayland-compatible version of GLFW installed (glfw-wayland
on
Arch) you can try launching the game. It will most likely error out with
something about window focus not being supported. In that case, you are in the
right direction.
If you're not under a distro with a guide here, you're mostly on your own. You can try waiting for someone else to write a guide for your distro, I guess.
Install the glfw-wayland-minecraft
package from the AUR.
If you're using a desktop that needs it, try using the unofficial
glfw-wayland-minecraft-libdecoration
package, which packages the
libdecoration
branch of this repository to the AUR.
git clone
this repository to somewhere, and run makepkg -si
inside. It will
ask you to replace your existing GLFW package if already installed.
If you're using a desktop that needs it, consider running git checkout libdecoration
before running makepkg -si
. This is a (probably) slightly unstable version that
works better on some desktops.
Install the Fedora package from https://copr.fedorainfracloud.org/coprs/lyessaadi/minecraft-wayland-glfw/. See https://github.com/Admicos/minecraft-wayland/issues/4 for more information.
You might need to change the Java arguments even if you are using a launcher that can replace GLFW. See this issue for more details.
Patch Gentoo's GLFW package by following the guide at https://github.com/Admicos/minecraft-wayland/issues/6
Install the Guix package from https://github.com/Admicos/minecraft-wayland/issues/18
This should be it. Try launching Minecraft now and see if it works.
If some version of Minecraft doesn't work with the patch enabled, you can disable it through MultiMC just for that version by
Edit instance
Settings
> Workarounds
Native Libraries
override switchYou can also disable the global switch and enable the patch per instance if that's how you want to roll.
Due to "Forge being Forge", you will need to add
-Dfml.earlyprogresswindow=false
to your Java arguments to make Forge instances
start up properly. See issue #1
for more information.
I really didn't do much on this other than "re-discovering" these things which aren't even that old. Here are the proper credits:
ninja-
on GitHub
annacrombie
on GitHub
christianrauch
on GitHub