Skip to content

Instantly share code, notes, and snippets.

@KitsuneAlex
Last active March 8, 2025 18:24
Show Gist options
  • Save KitsuneAlex/e9d0d88f22c2b7742b56e62855df2ed1 to your computer and use it in GitHub Desktop.
Save KitsuneAlex/e9d0d88f22c2b7742b56e62855df2ed1 to your computer and use it in GitHub Desktop.
Wayland Compatibility Flags

Wayland Compatibility Flags

A list of compatibility flags which can be used with various software to make it run natively on Wayland. Recommended for PopOS 24.04 with COSMIC.

For Qt5 applications

QT_QPA_PLATFORMTHEME=qt5ct
QT_IM_MODULE=ibus
QT_AUTO_SCREEN_SCALE_FACTOR=1
QT_QPA_PLATFORM=wayland

For JBR applications (IDEA etc.)

-Dawt.toolkit.name=WLToolkit
-Dsun.java2d.vulkan=true
-Dsun.java2d.uiScale.enabled=false

For Chromium/Electron applications

--enable-features=UseOzonePlatform,WaylandWindowDecorations 
--ozone-platform=wayland

Minecraft

  • Download the latest version of GLFW Wayland
  • Download a Minecraft launcher of your choice. I recommend MultiMC
  • Download WayGL if you're on Fabric
  • Use Sinytra Connector when you're on Forge
  • Set up a Minecraft instance (at least 1.13 because LWJGL3 is required)
  • Configure custom JVM arguments: -Dorg.lwjgl.glfw.libname=path/to/the/patched/glfw/binary.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment