bs-manager: set ELECTRON_FORCE_IS_PACKAGED

This is needed so that the app thinks it's in a packaged state, even if
using the source builds of electron. Once electron-bin gets
restructured, even using that will need this env var to be set.
This commit is contained in:
TomaSajt
2025-03-04 20:20:59 +01:00
parent b5d5d642da
commit afc2613411
+1
View File
@@ -65,6 +65,7 @@ stdenv.mkDerivation (finalAttrs: {
mkdir -p $out/bin
makeWrapper ${lib.getExe electron} $out/bin/bs-manager \
--set-default ELECTRON_FORCE_IS_PACKAGED 1 \
--add-flags $out/opt/BSManager/resources \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
--inherit-argv0