Use "open" instead of "xdg-open" on Darwin systems
This commit is contained in:
parent
687f1d8c1a
commit
1bb1a80156
4 changed files with 25 additions and 4 deletions
commands/msgview
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue