emms-help
[Top][All Lists]
Advanced

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

Bug fix in pulse


From: Daniel Cerqueira
Subject: Bug fix in pulse
Date: Mon, 18 Mar 2024 18:28:36 +0000

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
-- 
2.44.0

Attachment: signature.asc
Description: PGP signature


reply via email to

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