aboutsummaryrefslogtreecommitdiffstats
path: root/browserenv_windows.go
diff options
context:
space:
mode:
authorTeddy Wing2020-12-20 17:15:11 +0100
committerTeddy Wing2020-12-20 17:18:40 +0100
commit85df0594be312307ea33086583f590283f828c09 (patch)
tree2470ad8f5fde1abcba23eb4b321bcdba54c8f60e /browserenv_windows.go
parent2b67d0904096d00fbfa4ca7e7ea82a4f51055b45 (diff)
downloadbrowserenv-85df0594be312307ea33086583f590283f828c09.tar.bz2
Support multiple colon-separated commands in `BROWSER`
After reading the `urlview` man page, I learned that it supports multiple commands in the `BROWSER` environment variable separated by colons. Read over the source to see what `urlview` does: https://github.com/sigpipe/urlview/blob/08767aa863cd27d1755ba0aff65b8cc1a0c1446a/urlview.c#L617-L630 It tries each command from left to right until one of them exits with a `0` exit code. Use the same logic here.
Diffstat (limited to 'browserenv_windows.go')
0 files changed, 0 insertions, 0 deletions