[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
107/182: services: mpd: Connect to the user's PulseAudio socket.
From: |
guix-commits |
Subject: |
107/182: services: mpd: Connect to the user's PulseAudio socket. |
Date: |
Fri, 15 Nov 2019 00:01:49 -0500 (EST) |
kkebreau pushed a commit to branch wip-gnome-updates
in repository guix.
commit 451232098fb7dc0938e6f8da9d69685d64816760
Author: Robert Smith <address@hidden>
Date: Tue Nov 5 23:46:46 2019 +0100
services: mpd: Connect to the user's PulseAudio socket.
* gnu/services/audio.scm (mpd-shepherd-service): Set the XDG_RUNTIME_DIR
environment variable.
Signed-off-by: Tobias Geerinckx-Rice <address@hidden>
---
gnu/services/audio.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/services/audio.scm b/gnu/services/audio.scm
index 471c5fd..345d822 100644
--- a/gnu/services/audio.scm
+++ b/gnu/services/audio.scm
@@ -140,6 +140,13 @@ audio_output {
"--no-daemon"
#$(mpd-config->file config))
#:pid-file #$(mpd-file-name config "pid")
+ #:environment-variables
+ ;; Required to detect PulseAudio when run under a user account.
+ '(#$(string-append
+ "XDG_RUNTIME_DIR=/run/user/"
+ (number->string
+ (passwd:uid
+ (getpwnam (mpd-configuration-user config))))))
#:log-file #$(mpd-file-name config "log")))
(stop #~(make-kill-destructor))))
- 114/182: gnu: python-astroid: Update to 2.3.3., (continued)
- 114/182: gnu: python-astroid: Update to 2.3.3., guix-commits, 2019/11/15
- 117/182: gnu: perl-data-compare: Update to 1.27., guix-commits, 2019/11/15
- 118/182: gnu: python-mpi4py: Update to 3.0.3., guix-commits, 2019/11/15
- 111/182: gnu: Add delft-icon-theme., guix-commits, 2019/11/15
- 116/182: gnu: perl-danga-socket: Update to 1.62., guix-commits, 2019/11/15
- 83/182: services: Make it possible to include dynamic modules in nginx., guix-commits, 2019/11/15
- 91/182: gnu: libssh: Update to 0.9.2., guix-commits, 2019/11/15
- 93/182: gnu: polybar: Update to 3.4.1., guix-commits, 2019/11/15
- 101/182: gnu: r-hmisc: Update to 4.3-0., guix-commits, 2019/11/15
- 109/182: guix: package: lock profiles when processing them., guix-commits, 2019/11/15
- 107/182: services: mpd: Connect to the user's PulseAudio socket.,
guix-commits <=
- 113/182: gnu: Add gnome-shell-extension-noannoyance., guix-commits, 2019/11/15
- 119/182: gnu: python-latexcodec: Update to 1.0.7., guix-commits, 2019/11/15
- 92/182: gnu: Fix deprecation of monolithic Qt 5.x package., guix-commits, 2019/11/15
- 108/182: guix: Add file-locking with no wait., guix-commits, 2019/11/15
- 112/182: gnu: Add gnome-shell-extension-dash-to-dock., guix-commits, 2019/11/15
- 121/182: ui: Produce hyperlinks for the 'location' field of search results., guix-commits, 2019/11/15
- 125/182: gnu: Add homebank., guix-commits, 2019/11/15
- 137/182: gnu: perl-file-configdir: Update to 0.021., guix-commits, 2019/11/15
- 120/182: gnu: botan: Update to 2.12.1., guix-commits, 2019/11/15
- 130/182: gnu: botan: Use getentropy()., guix-commits, 2019/11/15