mirror of
https://github.com/rclone/rclone.git
synced 2024-12-05 23:44:24 +08:00
f7af730b50
This is using godep to manage the vendor directory.
19 lines
418 B
Go
19 lines
418 B
Go
// +build !windows,!darwin
|
|
|
|
package open
|
|
|
|
import (
|
|
"os/exec"
|
|
)
|
|
|
|
// 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/
|
|
|
|
func open(input string) *exec.Cmd {
|
|
return exec.Command("xdg-open", input)
|
|
}
|
|
|
|
func openWith(input string, appName string) *exec.Cmd {
|
|
return exec.Command(appName, input)
|
|
}
|