aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/msg/unsubscribe.go2
-rw-r--r--commands/msgview/open-link.go2
-rw-r--r--commands/msgview/open.go4
3 files changed, 4 insertions, 4 deletions
diff --git a/commands/msg/unsubscribe.go b/commands/msg/unsubscribe.go
index a489b3b9..6fef16f5 100644
--- a/commands/msg/unsubscribe.go
+++ b/commands/msg/unsubscribe.go
@@ -180,7 +180,7 @@ func unsubscribeHTTP(u *url.URL) error {
go func() {
defer log.PanicHandler()
mime := fmt.Sprintf("x-scheme-handler/%s", u.Scheme)
- if err := lib.XDGOpenMime(u.String(), mime, nil); err != nil {
+ if err := lib.XDGOpenMime(u.String(), mime, ""); err != nil {
app.PushError("Unsubscribe:" + err.Error())
}
}()
diff --git a/commands/msgview/open-link.go b/commands/msgview/open-link.go
index ad2a7cc2..55aee08c 100644
--- a/commands/msgview/open-link.go
+++ b/commands/msgview/open-link.go
@@ -12,7 +12,7 @@ import (
type OpenLink struct {
Url *url.URL `opt:"url" action:"ParseUrl"`
- Cmd []string `opt:"..." required:"false"`
+ Cmd string `opt:"..." required:"false"`
}
func init() {
diff --git a/commands/msgview/open.go b/commands/msgview/open.go
index bab46bd7..0d6db5b0 100644
--- a/commands/msgview/open.go
+++ b/commands/msgview/open.go
@@ -13,8 +13,8 @@ import (
)
type Open struct {
- Delete bool `opt:"-d"`
- Cmd []string `opt:"..." required:"false"`
+ Delete bool `opt:"-d"`
+ Cmd string `opt:"..." required:"false"`
}
func init() {