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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user