diff options
author | Ben Burwell <ben@benburwell.com> | 2019-07-02 18:21:34 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-04 10:58:33 -0400 |
commit | 1bb1a8015659e0cfde45be9fe9440dbb254680cf (patch) | |
tree | 4ee9e875ed33f9d851a71c26d5a721c9ea4e9b59 /commands/msgview | |
parent | 687f1d8c1a31176c3d94e1c4f9049f011cd339ad (diff) |
Use "open" instead of "xdg-open" on Darwin systems
Diffstat (limited to 'commands/msgview')
-rw-r--r-- | commands/msgview/open.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/msgview/open.go b/commands/msgview/open.go index d1b3238..d25fa67 100644 --- a/commands/msgview/open.go +++ b/commands/msgview/open.go @@ -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()) } |