Merge pull request #316993 from alyraffauf/webcord-add-commandLineArgs

webcord: pass --enable-wayland-ime to electron under wayland session with NIXOS_OZONE_WL=1
This commit is contained in:
éclairevoyant
2024-06-25 06:06:17 +00:00
committed by GitHub
+1 -1
View File
@@ -55,7 +55,7 @@ buildNpmPackage rec {
# Add xdg-utils to path via suffix, per PR #181171
makeWrapper '${lib.getExe electron}' $out/bin/webcord \
--suffix PATH : "${binPath}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime}}" \
--add-flags $out/lib/node_modules/webcord/
runHook postInstall