From c0a3237befe278a5c344b9bd23d04415d26104b6 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Thu, 16 Feb 2023 02:17:05 +0000 Subject: [PATCH] Update file exports.sh.tmpl --- home/dot_config/shell/exports.sh.tmpl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/home/dot_config/shell/exports.sh.tmpl b/home/dot_config/shell/exports.sh.tmpl index 4bf38314..3ac7f99c 100644 --- a/home/dot_config/shell/exports.sh.tmpl +++ b/home/dot_config/shell/exports.sh.tmpl @@ -354,8 +354,13 @@ else fi {{ end }} -### WSL -# export LIBGL_ALWAYS_INDIRECT="1" -# export BROWSER='/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe' +### Browser +export BROWSER=brave -export BROWSER=librewolf +### WSL +if [[ "$(grep Microsoft /proc/version)" ]]; then + # Source: https://stackoverflow.com/questions/61110603/how-to-set-up-working-x11-forwarding-on-wsl2 + export LIBGL_ALWAYS_INDIRECT="1" + export DISPLAY=$(ip route list default | awk '{print $3}'):0 + export BROWSER='/mnt/c/Program\ Files/BraveSoftware/Brave-Browser/Application/brave.exe' +fi