diff options
Diffstat (limited to 'lib/open.go')
-rw-r--r-- | lib/open.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/open.go b/lib/open.go index 8a016eb3..f395d13d 100644 --- a/lib/open.go +++ b/lib/open.go @@ -3,6 +3,8 @@ package lib import ( "os/exec" "runtime" + + "git.sr.ht/~rjarry/aerc/logging" ) var openBin string = "xdg-open" @@ -49,6 +51,8 @@ func (xdg *xdgOpen) Start() error { return err } go func() { + defer logging.PanicHandler() + xdg.errCh <- xdg.cmd.Wait() close(xdg.errCh) }() |