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