From a9215ed2776ac79a83cf8e230f62d4617bab4adf Mon Sep 17 00:00:00 2001
From: Galonza Peter
Date: Sat, 5 Aug 2023 14:37:03 +0300
Subject: [PATCH] correction of condition logic for env variable
"VHS_NO_SANDBOX"
---
vhs.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vhs.go b/vhs.go
index e165a53c..5da82f4b 100644
--- a/vhs.go
+++ b/vhs.go
@@ -121,7 +121,7 @@ func (vhs *VHS) Start() error {
}
path, _ := launcher.LookPath()
- enableNoSandbox := os.Getenv("VHS_NO_SANDBOX") != ""
+ enableNoSandbox := os.Getenv("VHS_NO_SANDBOX") != "true"
u, err := launcher.New().Leakless(false).Bin(path).NoSandbox(enableNoSandbox).Launch()
if err != nil {
return fmt.Errorf("could not launch browser: %w", err)