Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-266908

Set Wayland APP_ID for showing icon (Linux)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.3 Pre-Release 1
    • Linux x86_64, Java Version, Wayland compositor
    • Plausible
    • UI
    • Low
    • Platform

      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.  You should simply add this code after GLFW.glfwInit():

       

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

            TommyWallberg [Mojang] TommyWallberg
            dmsmdms dmsmdms
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: