Alex Kost <alez...@gmail.com> skribis:

> * modules/shepherd/support.scm (default-persistency-state-file): Use
>   "shepherd" instead of "dmd".

[..]

> diff --git a/modules/shepherd/support.scm b/modules/shepherd/support.scm
> index f161056..aae8b3c 100644
> --- a/modules/shepherd/support.scm
> +++ b/modules/shepherd/support.scm
> @@ -296,8 +296,8 @@ create a template configuration file if non exists."
>  ;; Saving the state on exit.
>  (define default-persistency-state-file
>    (if (zero? (getuid))
> -      (string-append %localstatedir "/lib/misc/dmd-state")
> -      (string-append %user-config-dir "/dmd-state")))
> +      (string-append %localstatedir "/lib/shepherd/state")
> +      (string-append %user-config-dir "/state")))

OK!

Eventually, in the non-root case, we should have a %user-state-dir
following the XDG specs to store this file.

Ludo’.

Reply via email to