Daniel Cerqueira <[email protected]> writes:

> From a8416cca95bc8b6224a50dc07768a3b04482204c Mon Sep 17 00:00:00 2001
> From: Daniel Cerqueira <[email protected]>
> Date: Mon, 18 Mar 2024 17:51:18 +0000
> Subject: [PATCH] Fix pactl translation bug
>
> Deal with pactl being translated correctly.
>
> This fix add the "LC_ALL=C" Unix-like environment variable to the
> "pactl" call. This will work fine, because pactl only works on
> Unix-like systems (namely GNU).
>
> Signed-off-by: Daniel Cerqueira <[email protected]>
> ---
>  emms-volume-pulse.el | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/emms-volume-pulse.el b/emms-volume-pulse.el
> index 98c8880..604077f 100644
> --- a/emms-volume-pulse.el
> +++ b/emms-volume-pulse.el
> @@ -70,11 +70,11 @@ See full list of devices on your system by running
>                emms-volume-pulse-sink
>              (string-trim
>               (shell-command-to-string
> -              "pactl info | grep 'Default Sink: ' | cut -d ' ' -f3-"))))
> +              "LC_ALL=C pactl info | grep 'Default Sink: ' | cut -d ' ' 
> -f3-"))))
>           (sink-number-p (numberp emms-volume-pulse-sink))
>           (output
>            (shell-command-to-string
> -           (concat "pactl list sinks" "|"
> +           (concat "LC_ALL=C pactl list sinks" "|"
>                     "grep -E -e 'Sink' -e 'Name' -e '^[^a-zA-Z]*Volume'")))
>        (volume-string
>         (car

applied; thank you

-- 
   "Cut your own wood and it will warm you twice"

Reply via email to