2014-02-04 20:11:26 +04:00
|
|
|
// +build !windows,!darwin
|
|
|
|
|
|
|
|
package open
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os/exec"
|
|
|
|
)
|
|
|
|
|
2015-02-21 17:03:35 +03:00
|
|
|
// http://sources.debian.net/src/xdg-utils/1.1.0~rc1%2Bgit20111210-7.1/scripts/xdg-open/
|
|
|
|
// http://sources.debian.net/src/xdg-utils/1.1.0~rc1%2Bgit20111210-7.1/scripts/xdg-mime/
|
|
|
|
|
2014-02-04 20:11:26 +04:00
|
|
|
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)
|
|
|
|
}
|