[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
107/184: services: mpd: Connect to the user's PulseAudio socket.
From: |
guix-commits |
Subject: |
107/184: services: mpd: Connect to the user's PulseAudio socket. |
Date: |
Wed, 27 Nov 2019 14:37:09 -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))))
- 170/184: gnu: polkit-qt: Use 'mirror-url'., (continued)
- 170/184: gnu: polkit-qt: Use 'mirror-url'., guix-commits, 2019/11/27
- 184/184: Merge branch 'master' into wip-gnome-updates, guix-commits, 2019/11/27
- 88/184: gnu: libdvdread: Update to 6.0.2., guix-commits, 2019/11/27
- 120/184: gnu: botan: Update to 2.12.1., guix-commits, 2019/11/27
- 117/184: gnu: perl-data-compare: Update to 1.27., guix-commits, 2019/11/27
- 114/184: gnu: python-astroid: Update to 2.3.3., guix-commits, 2019/11/27
- 127/184: gnu: signify: Update to 27., guix-commits, 2019/11/27
- 67/184: gnu: linux-libre@4.19: Update to 4.19.82., guix-commits, 2019/11/27
- 105/184: gnu: certbot, python-acme: Update to 0.40.1., guix-commits, 2019/11/27
- 106/184: news: Add 'de' translation., guix-commits, 2019/11/27
- 107/184: services: mpd: Connect to the user's PulseAudio socket.,
guix-commits <=
- 109/184: guix: package: lock profiles when processing them., guix-commits, 2019/11/27
- 118/184: gnu: python-mpi4py: Update to 3.0.3., guix-commits, 2019/11/27
- 128/184: gnu: miniupnpc: Don't use NAME in source URI., guix-commits, 2019/11/27
- 148/184: gnu: qtractor: Update to 0.9.11., guix-commits, 2019/11/27
- 147/184: gnu: youtube-dl: Update to 2019.11.05., guix-commits, 2019/11/27
- 124/184: build: Warn about etc/indent-code.el when Emacs is absent., guix-commits, 2019/11/27
- 138/184: services: hpcguix-web: Explicitly import (guix build utils)., guix-commits, 2019/11/27
- 136/184: gnu: perl-class-inspector: Update to 1.36., guix-commits, 2019/11/27
- 125/184: gnu: Add homebank., guix-commits, 2019/11/27
- 135/184: gnu: parcimonie: Update to 0.11.0., guix-commits, 2019/11/27