mojira.dev

dmsmdms

Assigned

No issues.

Reported

MC-266908 Set Wayland APP_ID for showing icon (Linux) Plausible

Comments

Hello! Since LWJGL 3.3.4 you can set the GLFW_WAYLAND_APP_ID. (https://javadoc.lwjgl.org/org/lwjgl/glfw/GLFW.html#GLFW_WAYLAND_APP_ID) It's a name of desktop file in Linux. Wayland compositor will use it for showing icon. I have bad knowledge in creating fabric mods, but you should simply add this code after GLFW.glfwInit():

 

if (GLFW.glfwGetPlatform() == GLFW.GLFW_PLATFORM_WAYLAND) {
  GLFW.glfwWindowHintString(GLFW.GLFW_WAYLAND_APP_ID, "minecraft");
}