[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#63082: [PATCH 15/17] services: mpd: Provision a default cache direct
From: |
Maxim Cournoyer |
Subject: |
bug#63082: [PATCH 15/17] services: mpd: Provision a default cache directory and set HOME. |
Date: |
Sat, 29 Apr 2023 13:07:46 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hi Bruno,
Bruno Victal <mirai@makinata.eu> writes:
> On 2023-04-28 15:27, Maxim Cournoyer wrote:
>> Relates to <https://issues.guix.gnu.org/63082>.
>>
>> * gnu/services/audio.scm (mpd-shepherd-service): Create a default .cache
>> directory. Use mkdir-p/perms and refactor loop. Set the HOME environment
>> variables.
>
> There's a slight problem here, you might really not want db_file to be set
> _at all_.
> Case in point, I use a database-plugin instead which would be
> incongruent if db_file is forcibly serialized into the config.
>
> Perhaps we could add some kind of warning mechanism that alerts the
> user that either db_file or database-plugin must be configured?
I believe there's no problem; I don't force a value to db_file, so the
serialized configuration doesn't have any.
MPD has a mechanism that scans the MPD user directory for XDG locations
such as ~/.cache; when such directories exist it supports automatically
figuring out a location for the database file and creating it itself.
If the user has specified something precise, it'd be a bug in MPD that
it doesn't honor these settings instead.
Does it clarify the mechanism?
--
Thanks,
Maxim
- bug#63082: [PATCH 01/17] services: mpd: Add an 'update' action to trigger a database update., (continued)
- bug#63082: [PATCH 01/17] services: mpd: Add an 'update' action to trigger a database update., Maxim Cournoyer, 2023/04/28
- bug#63082: [PATCH 05/17] services: mpd: List log-level in decreasing verbosity order in doc., Maxim Cournoyer, 2023/04/28
- bug#63082: [PATCH 10/17] system: accounts: Export <user-account>., Maxim Cournoyer, 2023/04/28
- bug#63082: [PATCH 16/17] services: mpd: Update basic example., Maxim Cournoyer, 2023/04/28
- bug#63082: [PATCH 11/17] services: mpd: Warn when the MPD user is not in the "audio" group., Maxim Cournoyer, 2023/04/28
- bug#63082: [PATCH 12/17] services: mpd: Auto-detect mpd-output mixer type by default., Maxim Cournoyer, 2023/04/28
- bug#63082: [PATCH 15/17] services: mpd: Provision a default cache directory and set HOME., Maxim Cournoyer, 2023/04/28
bug#63082: [PATCH 08/17] services: mpd: Only rotate log when a log file is specified., Maxim Cournoyer, 2023/04/28
bug#63082: [PATCH 04/17] services: mpd: Obsolete the 'group' field., Maxim Cournoyer, 2023/04/28
bug#63082: [PATCH 04/17] services: mpd: Obsolete the 'group' field., Liliana Marie Prikler, 2023/04/29
bug#63082: [PATCH 04/17] services: mpd: Obsolete the 'group' field., Liliana Marie Prikler, 2023/04/29
bug#63082: [PATCH 04/17] services: mpd: Obsolete the 'group' field., Maxim Cournoyer, 2023/04/29
bug#63082: [PATCH 04/17] services: mpd: Obsolete the 'group' field., Maxim Cournoyer, 2023/04/29