emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug fix in pulse


From: Yoni Rabkin
Subject: Re: Bug fix in pulse
Date: Mon, 18 Mar 2024 16:12:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

Daniel Cerqueira <dan.git@lispclub.com> writes:

> From a8416cca95bc8b6224a50dc07768a3b04482204c Mon Sep 17 00:00:00 2001
> From: Daniel Cerqueira <dan.git@lispclub.com>
> 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 <dan.git@lispclub.com>
> ---
>  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

[Prev in Thread] Current Thread [Next in Thread]