From 1db74a9ba74350776dee5f2384744357ad3aace5 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sun, 24 Sep 2023 21:10:19 +0200 Subject: 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 Signed-off-by: Robin Jarry Reviewed-by: Koni Marti Tested-by: Moritz Poldrack Tested-by: Inwit --- commands/msgview/open-link.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/msgview/open-link.go') 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() { -- cgit