unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Mathieu Lirzin <mthl@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 3/3] support: Rename user-dmddir to %user-shepherd-dir.
Date: Sun, 17 Jan 2016 15:19:11 +0100	[thread overview]
Message-ID: <87wpr870gw.fsf@gnu.org> (raw)
In-Reply-To: <1452982661-17268-4-git-send-email-mthl@gnu.org> (Mathieu Lirzin's message of "Sat, 16 Jan 2016 23:17:41 +0100")

Mathieu Lirzin <mthl@gnu.org> skribis:

> * modules/shepherd/support.scm (user-dmddir): Rename to ...
> (%user-shepherd-dir): ... this.  Honor XDG variables and use
> '~/.config/shepherd' as default value.  All consumers changed.
> (mkdir-p): New procedure.  Export it.
> (default-config-file): Use it.
> (verify-dir): Likewise.

Cool!

> +(define %user-shepherd-dir
> +  ;; sheperd default directory if shepherd is run as a normal user.
         ^^^
Typo.  :-)

I would rename the variable to ‘%user-config-dir’ or similar; I think
it’s putting the package name everywhere just makes it more difficult to
rename it.  :-)

> +  (string-append (or (getenv "XDG_CONFIG_HOME")
> +		     (string-append user-homedir "/.config"))
   ^^^
No tabs please!

Could you update shepherd.texi to so that it mentions the right
location, make sure XDG_CACHE_HOME is unset in AM_TESTS_ENVIRONMENT (or
similar), also add a test in basic.sh?

The test would essentially be done at the end of basic.sh, setting
XDG_CACHE_HOME to some temporary place and making sure that ‘shepherd’
loads the file.

Thank you!  It’s great to see people have worked on to-do items while I
was away from keyboard!  :-)

Ludo’.

  parent reply	other threads:[~2016-01-17 14:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-16 22:17 [PATCH 0/3] [Shepherd][PATCH 0/3] Change configuration file Mathieu Lirzin
2016-01-16 22:17 ` [PATCH 1/3] maint: Add .dir-locals.el Mathieu Lirzin
2016-01-17 14:07   ` Ludovic Courtès
2016-01-16 22:17 ` [PATCH 2/3] support: Add a keyword argument '#:secure?' to verify-dir Mathieu Lirzin
2016-01-17 14:08   ` Ludovic Courtès
2016-01-16 22:17 ` [PATCH 3/3] support: Rename user-dmddir to %user-shepherd-dir Mathieu Lirzin
2016-01-17 14:05   ` Mathieu Lirzin
2016-01-17 20:43     ` Ludovic Courtès
2016-01-17 21:51       ` Mathieu Lirzin
2016-01-18 21:08         ` Ludovic Courtès
2016-01-17 14:19   ` Ludovic Courtès [this message]
2016-01-17 20:49     ` Mathieu Lirzin
2016-01-17 21:06       ` Mathieu Lirzin
2016-01-18 20:59         ` Ludovic Courtès

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=87wpr870gw.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=mthl@gnu.org \
    /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).