2014-02-04 20:11:26 +04:00
|
|
|
// +build !windows,!darwin
|
|
|
|
|
|
|
|
package open
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os/exec"
|
|
|
|
)
|
|
|
|
|
|
|
|
func open(input string) *exec.Cmd {
|
2014-09-04 14:56:57 +04:00
|
|
|
return exec.Command("xdg-open", input)
|
2014-02-04 20:11:26 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
func openWith(input string, appName string) *exec.Cmd {
|
|
|
|
return exec.Command(appName, input)
|
|
|
|
}
|