android-studio: add forceWayland

This commit is contained in:
CrackTC
2024-10-10 10:50:34 +08:00
parent 1d65d94ef3
commit cfc2bf0488
@@ -67,6 +67,8 @@
, makeDesktopItem
, tiling_wm # if we are using a tiling wm, need to set _JAVA_AWT_WM_NONREPARENTING in wrapper
, androidenv
, forceWayland ? false
}:
let
@@ -180,7 +182,8 @@ let
# For wayland support
wayland
]}"
]}" \
${lib.optionalString forceWayland "--add-flags -Dawt.toolkit.name=WLToolkit"}
# AS launches LLDBFrontend with a custom LD_LIBRARY_PATH
wrapProgram $(find $out -name LLDBFrontend) --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [