Use "open" instead of "xdg-open" on Darwin systems

This commit is contained in:
Ben Burwell 2019-07-02 18:21:34 -04:00 committed by Drew DeVault
parent 687f1d8c1a
commit 1bb1a80156
4 changed files with 25 additions and 4 deletions
commands/msgview

View file

@ -7,10 +7,10 @@ import (
"io/ioutil"
"mime/quotedprintable"
"os"
"os/exec"
"strings"
"time"
"git.sr.ht/~sircmpwn/aerc/lib"
"git.sr.ht/~sircmpwn/aerc/widgets"
)
@ -58,8 +58,7 @@ func (_ Open) Execute(aerc *widgets.Aerc, args []string) error {
return
}
cmd := exec.Command("xdg-open", tmpFile.Name())
err = cmd.Run()
err = lib.OpenFile(tmpFile.Name())
if err != nil {
aerc.PushError(" " + err.Error())
}