mirror of
https://git.sr.ht/~sircmpwn/aerc
synced 2024-11-23 16:42:07 +01:00
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()
|
|
}
|