1
0
mirror of https://git.sr.ht/~sircmpwn/aerc synced 2024-11-23 08:32:12 +01:00
aerc/lib/open.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()
}