From 910472e184d66d45fe70a20a7fb621ea10773097 Mon Sep 17 00:00:00 2001 From: elsirion Date: Tue, 22 Oct 2024 07:54:23 -0400 Subject: [PATCH] fix: DBUS --- .github/workflows/verify.yml | 2 ++ flake.nix | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 2b5a58b..264470c 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -72,8 +72,10 @@ jobs: # Install dependencies pnpm install + export PLAYWRIGHT_CHROMIUM_ARGS="--no-sandbox --disable-gpu --disable-software-rasterizer --disable-power-sandbox --disable-features=PowerMonitoring" # Run Tests DEBUG="pw:browser*" pnpm test + EOF build-docs: diff --git a/flake.nix b/flake.nix index b70ef50..1ee1426 100644 --- a/flake.nix +++ b/flake.nix @@ -26,11 +26,15 @@ pkgs.nodejs_20 # The version of playwright in nixpkgs has to match the verison specified in package.json pkgs.playwright-driver.browsers + pkgs.dbus.lib ] ++ prev.nativeBuildInputs; shellHook = '' export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers} export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true + # Launch temporary DBUS session + eval $(dbus-launch --sh-syntax) + echo "DBUS: $DBUS_SESSION_BUS_ADDRESS" ''; }); };