guix/doc
Bruno Victal 637a9c3b26
services: mpd: Do not hardcode environment variables.
Services should not expect for XDG_RUNTIME_DIR to be set.
Inferring from the past comment, this seemed to resolve an issue when
the service was launched with an _interactive_ user-account,
which tends to have this variable set by the login-manager.

This is not the case for system accounts and setting this variable
results in PulseAudio (launched by the same system user) failing to start
since it attempts to use a nonexistent directory.

Ideally, this service should have a home-service counterpart but the old
behavior can be emulated by setting the environment-variables field to:

(environment-variables
  (list
    (string-append "XDG_RUNTIME_DIR=/run/user/"
                   (number->string (passwd:uid (getpwnam "myuser"))))))

* gnu/services/audio.scm
(mpd-configuration)[environment-variables]: New field.
(mpd-shepherd-service)[start]: Use new field.
* doc/guix.texi (Audio Services)[Music Player Daemon]: Document it.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-02-05 06:56:43 +01:00
..
images
build.scm doc: Build pt_BR manual. 2022-11-15 12:16:44 +01:00
contributing.texi doc: contributing: Note '-v REVISION' bug in 'git send-email'. 2023-01-11 10:31:58 +00:00
environment-gdb.scm
fdl-1.3.texi
guix-cookbook.texi doc: cookbook: Add "Installing Guix on a Cluster" chapter. 2023-01-09 17:40:53 +01:00
guix.texi services: mpd: Do not hardcode environment variables. 2023-02-05 06:56:43 +01:00
he-config-bare-bones.scm
htmlxref.cnf doc: Update URLs for the manual and cookbook translations. 2022-12-18 16:01:32 +01:00
local.mk doc: Build more man pages. 2022-11-19 19:54:14 +01:00
package-hello.json
package-hello.scm