Minecraft now ships a version of LWJGL that supports changing theWM_CLASS
hint. Now all you need to do is for each profile for which you want to changeWM_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:
- If you have the launcher open, close it.
- Download the installer and save it into your .minecraft folder.
-
Set
patch-lwjgl-version
to be executable. -
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
. - Open the Minecraft launcher.
-
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. - Play the game.