From: Mark Wooding Date: Thu, 17 Feb 2022 19:36:27 +0000 (+0000) Subject: dot/e16-bindings, dot/xinitrc: Fix shell quoting for `pavucontrol'. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/f173a9c272a79ac77dc896ab31cf445c48363956?hp=1be176cb3a2ca385f1423953facf1cd92dbcfa98 dot/e16-bindings, dot/xinitrc: Fix shell quoting for `pavucontrol'. This is a hopeless mess. Hack around it by invoking a shell explicitly to do the redirection. Get `xinitrc' to help by using `eval' to handle quotes correctly when splitting into words. --- diff --git a/dot/e16-bindings b/dot/e16-bindings index 8c12e38..5d604c8 100644 --- a/dot/e16-bindings +++ b/dot/e16-bindings @@ -59,7 +59,7 @@ KeyDown C5 v wop * th available KeyDown C5 w menus show winops.menu KeyDown C5 x wop * close KeyDown C5 y exec xfce4-find-cursor -KeyDown C5 numbersign exec xinitcmd pavucontrol >/dev/null 2>&1 +KeyDown C5 numbersign exec xinitcmd "sh -c 'pavucontrol >/dev/null 2>&1'" KeyDown C5 apostrophe exec xinitcmd disobedience -u$(realpath $HOME/.disorder/passwd) KeyDown C5 semicolon exec disorder-notify next-config KeyDown C5 plus exec disorder-notify volume-up diff --git a/dot/xinitrc b/dot/xinitrc index 4e03412..89105c1 100755 --- a/dot/xinitrc +++ b/dot/xinitrc @@ -441,7 +441,7 @@ EOF eval "${line#!}" ;; *) - set -- $line + eval "set -- $line" run bgclients "$@" ;; esac