From fd2ea4006c34f4920fbf478111178884912f505a Mon Sep 17 00:00:00 2001 From: Ansh Dadwal <68729523+T-Dynamos@users.noreply.github.com> Date: Tue, 14 Feb 2023 20:00:21 +0530 Subject: [PATCH] add termux support Termux has a different prefix which is not present here. --- cspell.json | 1 + lib/launcher/browser.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cspell.json b/cspell.json index 25849cda..8173b26c 100644 --- a/cspell.json +++ b/cspell.json @@ -102,6 +102,7 @@ "touchstart", "tracebackancestors", "trimpath", + "termux", "Typedarray", "tzdata", "Unserializable", diff --git a/lib/launcher/browser.go b/lib/launcher/browser.go index 65099c95..50f3c6ab 100644 --- a/lib/launcher/browser.go +++ b/lib/launcher/browser.go @@ -331,6 +331,7 @@ func LookPath() (found string, has bool) { "/usr/bin/chromium", "/usr/bin/chromium-browser", "/snap/bin/chromium", + "/data/data/com.termux/files/usr/bin/chromium-browser", }, "windows": append([]string{"chrome", "edge"}, expandWindowsExePaths( `Google\Chrome\Application\chrome.exe`,