Files
termux-packages/packages/step-cli/browser.patch
termux-pacman-bot fdb11c999c enhance(main/step-cli): Enable auto-opening browser
Add a patch to use xdg-open on GOOS=android so that e.g. `step ssh
login` auto-opens the device browser to the login page as expected.
2024-10-18 11:35:51 +00:00

12 lines
362 B
Diff

--- a/exec/exec.go 2024-04-22 17:03:28.000000000 -0700
+++ b/exec/exec.go 2024-06-02 23:59:20.755782617 -0700
@@ -109,6 +109,8 @@
} else {
cmd = exec.Command("open", "-a", browser, url)
}
+ case "android":
+ cmd = exec.Command("xdg-open", url)
case "linux":
if IsWSL() {
cmd = exec.Command("rundll32.exe", "url.dll,FileProtocolHandler", url)