LWJGL Nightly Build with WM_CLASS Support for Minecraft

Minecraft now ships a version of LWJGL that supports changing the WM_CLASS hint. Now all you need to do is for each profile for which you want to change WM_CLASS, edit the profile and add the argument -DLWJGL_WM_CLASS=Minecraft to the list of JVM arguments (you may need to check the box for it first).  Be sure to include a space before the argument.

This is a nightly build of LWJGL that supports the LWJGL_WM_CLASS JVM property to allow for setting the X11 WM_CLASS hint, which allows for better desktop integration with GNOME Shell and possibly other desktop environments.

To install:

  1. If you have the launcher open, close it.
  2. Download the installer and save it into your .minecraft folder.
  3. Set patch-lwjgl-version to be executable.
  4. Run .minecraft/patch-lwjgl-version <minecraft version number> for each version of Minecraft with which you want to use the nightly build.  This will create a new game version called <version>-WM_CLASS.  If you do not want this, use -i or --in-place as the first argument to the installer, e.g. .minecraft/patch-lwjgl-version -i 1.6.4-OptiFine_HD_U_C6.
  5. Open the Minecraft launcher.
  6. For each profile with which you want to use the nightly, edit the profile and add the argument -DLWJGL_WM_CLASS=Minecraft to the list of JVM arguments (you may need to check the box for it first).  Be sure to include a space before the argument. Also, if you did not use the in-place option, change the game version to <version>-WM_CLASS, where <version> is the version number you gave to the installer.
  7. Play the game.