Skip to content

Commit

Permalink
fix: DBUS
Browse files Browse the repository at this point in the history
  • Loading branch information
elsirion committed Oct 22, 2024
1 parent 44998c6 commit 5151900
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
'';
});
};
Expand Down

0 comments on commit 5151900

Please sign in to comment.