From 73e52ad75aa8794d3d69dc9dfa6d4c01a41d09f8 Mon Sep 17 00:00:00 2001 From: Clemens Lutz Date: Wed, 13 Apr 2022 00:49:17 +0200 Subject: [PATCH] tor-browser-bundle-bin: Wayland support --- .../browsers/tor-browser-bundle-bin/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix b/pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix index 12ff0aa75ec4..56c7083fee69 100644 --- a/pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix +++ b/pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix @@ -366,6 +366,11 @@ stdenv.mkDerivation rec { PULSE_SERVER="\''${PULSE_SERVER:-}" \ PULSE_COOKIE="\''${PULSE_COOKIE:-}" \ \ + MOZ_ENABLE_WAYLAND=\$MOZ_ENABLE_WAYLAND \ + WAYLAND_DISPLAY="\$WAYLAND_DISPLAY" \ + XDG_RUNTIME_DIR="\$XDG_RUNTIME_DIR" \ + XCURSOR_PATH="\$XCURSOR_PATH" \ + \ APULSE_PLAYBACK_DEVICE="\''${APULSE_PLAYBACK_DEVICE:-plug:dmix}" \ \ TOR_SKIP_LAUNCH="\''${TOR_SKIP_LAUNCH:-}" \ @@ -404,7 +409,9 @@ stdenv.mkDerivation rec { LD_LIBRARY_PATH=$libPath $TBB_IN_STORE/TorBrowser/Tor/tor --version >/dev/null echo "Checking tor-browser wrapper ..." - DISPLAY="" XAUTHORITY="" DBUS_SESSION_BUS_ADDRESS="" TBB_HOME=$(mktemp -d) \ + DISPLAY="" MOZ_ENABLE_WAYLAND="" WAYLAND_DISPLAY="" XAUTHORITY="" \ + XCURSOR_PATH="" XDG_RUNTIME_DIR="" XDG_SESSION_TYPE="" \ + DBUS_SESSION_BUS_ADDRESS="" TBB_HOME=$(mktemp -d) \ $out/bin/tor-browser --version >/dev/null '';