all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#38075] [PATCH] services: mpd: add pulseaudio support
@ 2019-11-05 22:46 Robert Smith
  2019-11-06 11:22 ` Ludovic Courtès
  2019-11-08 20:34 ` bug#38075: " Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 2 replies; 8+ messages in thread
From: Robert Smith @ 2019-11-05 22:46 UTC (permalink / raw)
  To: 38075; +Cc: Robert Smith

Set the XDG_RUNTIME_PATH environment variable in the mpd service so
that it can detect pulseaudio when run under a user account.
---
 gnu/services/audio.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/services/audio.scm b/gnu/services/audio.scm
index 471c5fd95f..424ccc7c8f 100644
--- a/gnu/services/audio.scm
+++ b/gnu/services/audio.scm
@@ -140,6 +140,12 @@ audio_output {
                    "--no-daemon"
                    #$(mpd-config->file config))
              #:pid-file #$(mpd-file-name config "pid")
+             #:environment-variables
+             '(#$(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))))
 
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-11-08 20:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-05 22:46 [bug#38075] [PATCH] services: mpd: add pulseaudio support Robert Smith
2019-11-06 11:22 ` Ludovic Courtès
2019-11-06 13:32   ` Robert Smith
2019-11-06 18:27   ` Leo Famulari
2019-11-06 23:54     ` Robert Smith
2019-11-08 19:53   ` Tobias Geerinckx-Rice via Guix-patches via
2019-11-08 20:28     ` Peter Mikkelsen
2019-11-08 20:34 ` bug#38075: " Tobias Geerinckx-Rice via Guix-patches via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.