From: Bruno Victal <mirai@makinata.eu>
To: Andrew Tropin <andrew@trop.in>
Cc: philip@philipmcgrath.com, 61982@debbugs.gnu.org
Subject: [bug#61982] [PATCH 2/2] home: services: xdg-base-directories: Deprecate XDG_LOG_HOME.
Date: Fri, 7 Apr 2023 12:47:44 +0100 [thread overview]
Message-ID: <10e30d4c-07f2-8bf9-24ed-7bbf820d12e8@makinata.eu> (raw)
In-Reply-To: <87cz4gw06c.fsf@trop.in>
Hi Andrew,
On 2023-04-07 09:45, Andrew Tropin wrote:
> On 2023-03-05 15:19, Bruno Victal wrote:
>> --- a/gnu/home/services/desktop.scm
>> +++ b/gnu/home/services/desktop.scm
>> @@ -206,8 +206,8 @@ (define (home-dbus-shepherd-services config)
>> (default-environment-variables))
>> #:log-file
>> (format #f "~a/dbus.log"
>> - (or (getenv "XDG_LOG_HOME")
>> - (format #f "~a/.local/var/log"
>> + (or (getenv "XDG_STATE_HOME")
>> + (format #f "~a/.local/state"
>
> If we deprecate XDG_LOG_HOME, maybe it's a good idea to make a helper
> function, which can be reused across different services?
>
> Also, how about appending /log subdirectory by default?
>> WDYT?
I'm wondering if this continued usage of XDG_LOG_HOME was a good idea,
maybe the service should just start using XDG_STATE_HOME as soon as possible?
(in which case, this patch will have to be reworked to reflect that)
This way we avoid introducing yet more code to handle deprecated code.
It shouldn't result in any kind of problems, XDG_LOG_HOME will still be set in the meantime
for scripts and code that happen to use it and are not part of (upstream) guix.
WDYT?
Cheers,
Bruno
next prev parent reply other threads:[~2023-04-07 11:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-05 15:16 [bug#61982] [PATCH 0/2] Respect XDG Base Directory Specification 0.8 Bruno Victal
2023-03-05 15:19 ` [bug#61982] [PATCH 1/2] home: services: xdg-base-directories: Set correct value for XDG_STATE_HOME Bruno Victal
2023-03-05 15:19 ` [bug#61982] [PATCH 2/2] home: services: xdg-base-directories: Deprecate XDG_LOG_HOME Bruno Victal
2023-04-07 8:45 ` Andrew Tropin
2023-04-07 11:47 ` Bruno Victal [this message]
2023-04-07 12:46 ` Andrew Tropin
2023-04-09 19:09 ` Philip McGrath
2023-04-09 19:57 ` ( via Guix-patches via
2023-04-09 20:01 ` ( via Guix-patches via
2023-06-15 9:35 ` bug#61982: " Andrew Tropin
2023-06-15 18:09 ` [bug#61982] " Philip McGrath
2023-06-16 3:28 ` Andrew Tropin
2023-06-17 18:22 ` Philip McGrath
2023-04-07 6:43 ` [bug#61982] [PATCH 1/2] home: services: xdg-base-directories: Set correct value for XDG_STATE_HOME Andrew Tropin
2023-06-09 21:01 ` [bug#61982] [PATCH 0/2] Respect XDG Base Directory Specification 0.8 Ludovic Courtès
2023-06-14 9:27 ` Andrew Tropin
2023-04-11 20:01 ` [bug#61982] [PATCH 2/2] home: services: xdg-base-directories: Deprecate XDG_LOG_HOME ( via Guix-patches via
2023-04-12 17:17 ` Andrew Tropin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10e30d4c-07f2-8bf9-24ed-7bbf820d12e8@makinata.eu \
--to=mirai@makinata.eu \
--cc=61982@debbugs.gnu.org \
--cc=andrew@trop.in \
--cc=philip@philipmcgrath.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).