aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-09-24 21:10:19 +0200
committerRobin Jarry <robin@jarry.cc>2023-10-28 19:25:02 +0200
commit1db74a9ba74350776dee5f2384744357ad3aace5 (patch)
tree923e7ef487ee71876620d4f8370b06a543f5fb79 /commands/msg
parent8464b373851142b0becaaa10db34df3559b2b62e (diff)
downloadaerc-1db74a9ba74350776dee5f2384744357ad3aace5.tar.gz
open: run commands with sh -c
Allow running shell commands in openers. Changelog-changed: `:open` commands are now executed with `sh -c`. Requested-by: Vitaly Ovchinnikov <v@postbox.nz> Signed-off-by: Robin Jarry <robin@jarry.cc> Reviewed-by: Koni Marti <koni.marti@gmail.com> Tested-by: Moritz Poldrack <moritz@poldrack.dev> Tested-by: Inwit <inwit@sindominio.net>
Diffstat (limited to 'commands/msg')
-rw-r--r--commands/msg/unsubscribe.go2
1 files changed, 1 insertions, 1 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())
}
}()