From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#40544: Pulseaudio is not looking for user configuration Date: Tue, 28 Apr 2020 22:49:56 +0200 Message-ID: <87lfmftjwr.fsf@gnu.org> References: <20200410182025.0fb30500@runbox.com> <877dyfik0x.fsf@GlaDOS.home> <87h7xbthne.fsf@gnu.org> <87368ohqyr.fsf@GlaDOS.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43394) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTXEQ-000432-QO for bug-guix@gnu.org; Tue, 28 Apr 2020 16:54:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTXC3-000525-33 for bug-guix@gnu.org; Tue, 28 Apr 2020 16:53:30 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTXC2-00050K-Lk for bug-guix@gnu.org; Tue, 28 Apr 2020 16:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTXC2-0003y5-Kh for bug-guix@gnu.org; Tue, 28 Apr 2020 16:51:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87368ohqyr.fsf@GlaDOS.home> (Diego Nicola Barbato's message of "Tue, 28 Apr 2020 11:58:20 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Diego Nicola Barbato Cc: pkill9 , 40544-done@debbugs.gnu.org Hi Diego, Diego Nicola Barbato skribis: >>> That's a known [0] (but AFAIK undocumented) side effect of the >>> PulseAudio service, which was added to %desktop-services in January [1]. >>> If you want PulseAudio to read your user configuration files you'll have >>> to remove that service from your system services or unset PULSE_CONFIG >>> and PULSE_CLIENT_CONFIG in ~/.profile [2]. >> >> It would be good to document that, right below >> =E2=80=98pulseaudio-service-type=E2=80=99. Would you like to give it a = try, Diego? > > I've attached a patch, which adds a warning to the documentation. > >> Or alternately, is there a way we can arrange so that the user=E2=80=99s= config >> takes precedence over /etc/pulse? > > We can't configure PulseAudio with "--sysconfdir=3D/etc" because it would > break without the service (e.g. on foreign distributions).[0] OK. > We could patch PulseAudio to make the sysconfdir configurable at runtime > using an environment variable. The service could set this environment > variable to /etc instead of setting =E2=80=98PULSE_CONFIG=E2=80=99 and > =E2=80=98PULSE_CLIENT_CONFIG=E2=80=99. That way the user's config would = take precedence > over /etc/pulse (PulseAudio's normal behaviour). Without the service > (and with the environment variable unset) it would fall back to the > sysconfdir configured at build time so it wouldn't break on foreign > distributions. Although I doubt that the slight improvement in user > experience would justify the increased maintenance burden. Yeah, plus I=E2=80=99d rather use existing mechanism than patch PulseAudio. But anyway, we can revisit this later if documenting the issue turns out to be insufficient. > From a33a10102f555454d9025b0693edf8d539f6a7af Mon Sep 17 00:00:00 2001 > From: Diego Nicola Barbato > Date: Sat, 25 Apr 2020 11:32:07 +0200 > Subject: [PATCH] doc: Mention that PulseAudio service overrides user > configuration. > > * doc/guix.texi (Sound Services): Add a warning that 'pulseaudio-service-= type' > overrides per-user configuration files in '~/.config/pulse'. Applied, thank you! Ludo=E2=80=99.