diff options
author | Robin Jarry <robin@jarry.cc> | 2023-09-24 21:10:19 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-10-28 19:25:02 +0200 |
commit | 1db74a9ba74350776dee5f2384744357ad3aace5 (patch) | |
tree | 923e7ef487ee71876620d4f8370b06a543f5fb79 /commands/msgview | |
parent | 8464b373851142b0becaaa10db34df3559b2b62e (diff) | |
download | aerc-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/msgview')
-rw-r--r-- | commands/msgview/open-link.go | 2 | ||||
-rw-r--r-- | commands/msgview/open.go | 4 |
2 files changed, 3 insertions, 3 deletions
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() { |