13 lines
157 B
Go
13 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()
|
||
|
}
|