From cfc2bf0488b5b62a71932225f23b9101bf8e9f89 Mon Sep 17 00:00:00 2001 From: CrackTC Date: Thu, 10 Oct 2024 10:50:34 +0800 Subject: [PATCH] android-studio: add forceWayland --- pkgs/applications/editors/android-studio/common.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/android-studio/common.nix b/pkgs/applications/editors/android-studio/common.nix index c4fa27f9042f..28d9f496ae8c 100644 --- a/pkgs/applications/editors/android-studio/common.nix +++ b/pkgs/applications/editors/android-studio/common.nix @@ -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 [