aboutsummaryrefslogtreecommitdiffstats
path: root/browserenv_unix.go
blob: 6d569e4a163e97ed014defadc70656e5a1598938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// +build !windows

package browserenv

import (
	"fmt"
	"os"
)

// TODO
func shell() (args []string) {
	shell := os.Getenv("SHELL")

	if shell == "" {
		shell = "/bin/sh"
	}

	return []string{shell, "-c"}
}

// TODO
func shellEscapeCommand(browser, url string) string {
	return fmt.Sprintf("%s '%s'", browser, url)
}