Bug fix in pulse
Daniel Cerqueira <[email protected]> Mon, 18 Mar 2024 18:28:36 +0000
| Newsgroups | gmane.emacs.emms.user |
|---|---|
| Message-ID | <[email protected]> |
0001-Fix-pactl-translation-bug.patch
(text/x-patch, 1.3 KB)
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 -- 2.44.0
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEXj9Ql/fkKq6+iNaVLWOqhZ3UAJAFAmX4h9QACgkQLWOqhZ3U AJCWhBAAr7qp+aySVO2GDhdT/skb1Gr/1vP7oiNUoWoXCjcoXDTHzhTdVZroj3kn aZ1icmza16wa7BdPS5aeQ5f7e0Ol5BYWuh1dLztASPAANVSixdbEboIs8wy9dQE+ 2Q/yxbJ1eieE46tBpOc0lk1btH9gliudD1eUnI+ISC3bi8ba1WE7gkdKCkQd43se TRoVbUhkPM0YG0K6cWccQ3EwLmd4sCsGiLr7ezXRVVN+wsdE+VNQeYteWRRmEyr3 NvmGy+l9y06xw6ssSfj8jGhrpU6nZRaBHgJP0G3WYDboATzXQp70qItk98SsJPBX V3zGM+0mjfqAS6EHVSlAou8V8MrhFcdJ12INnDlRiCCSmHWFY/t7Bj65EL4Fr5cc lQw+TXIRCpniBDkuqh8wYTx7neuiEEX3h4buNgLIUeC5Abz51gX96wbzCmfjFwG+ cHy7jQ8+i3ucuHJu/X1jqprjYXKaOp3j8VZZ9C1ypkb1EbWomimRTEvCRfpK0LMy jSHDzOV99g35/JU8x0ZsSD9bE/hZs46vvCs7zQhu5xwPpmlOl9gfJrTFLOZCv1sW Nn2oefMpV2WPwr6jfNGulZKSEY1NEmwKUaKAjvnq2Ww1+hEHfiEf5wG75rHWpo0o ChXkria4gG86uMosbl1pRpsf9NF3cc4gUumQm5UQzvmVtae9f94= =AlJa -----END PGP SIGNATURE-----