From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:60837) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS7lz-0006nR-AT for guix-patches@gnu.org; Tue, 05 Nov 2019 17:58:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iS7ly-0000rY-C0 for guix-patches@gnu.org; Tue, 05 Nov 2019 17:58:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58583) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iS7ly-0000rA-6u for guix-patches@gnu.org; Tue, 05 Nov 2019 17:58:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iS7ly-0004us-51 for guix-patches@gnu.org; Tue, 05 Nov 2019 17:58:02 -0500 Subject: [bug#38075] [PATCH] services: mpd: add pulseaudio support Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:60642) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS7lY-0006QH-Hb for guix-patches@gnu.org; Tue, 05 Nov 2019 17:57:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iS7lW-0000EU-9R for guix-patches@gnu.org; Tue, 05 Nov 2019 17:57:36 -0500 Received: from mout01.posteo.de ([185.67.36.65]:34727) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iS7lS-0008TM-5j for guix-patches@gnu.org; Tue, 05 Nov 2019 17:57:32 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B10E1160060 for ; Tue, 5 Nov 2019 23:57:21 +0100 (CET) From: Robert Smith Date: Tue, 5 Nov 2019 23:46:46 +0100 Message-Id: <20191105224645.12269-1-robertsmith@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38075@debbugs.gnu.org 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=3D/run/user/" + (number->string + (passwd:uid=20 + (getpwnam (mpd-configuration-user config)))))) #:log-file #$(mpd-file-name config "log"))) (stop #~(make-kill-destructor)))) =20 --=20 2.23.0