aerc/lib/open.go

13 lines
157 B
Go
Raw Normal View History

// +build !darwin
package lib
import (
"os/exec"
)
func OpenFile(filename string) error {
cmd := exec.Command("xdg-open", filename)
return cmd.Run()
}