diff options
Diffstat (limited to 'lib/open.go')
-rw-r--r-- | lib/open.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/open.go b/lib/open.go index 2a4bdbcf..8477b8f1 100644 --- a/lib/open.go +++ b/lib/open.go @@ -6,20 +6,20 @@ import ( "runtime" "strings" + "git.sr.ht/~rjarry/aerc/config" "git.sr.ht/~rjarry/aerc/log" ) func XDGOpen(uri string) error { - return XDGOpenMime(uri, "", nil, nil) + return XDGOpenMime(uri, "", nil) } func XDGOpenMime( - uri string, mimeType string, - openers map[string][]string, args []string, + uri string, mimeType string, args []string, ) error { if len(args) == 0 { // no explicit command provided, lookup opener from mime type - opener, ok := openers[mimeType] + opener, ok := config.Openers[mimeType] if ok { args = opener } else { |