[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#56050] [PATCH] home: services: environment-variables: Fix XDG base

From: Ludovic Courtès
Subject: [bug#56050] [PATCH] home: services: environment-variables: Fix XDG base directories.
Date: Sat, 25 Jun 2022 23:39:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)

Hi Philip,

Philip McGrath <> skribis:

> I based this patch on the file that gets installed as /etc/profile.d/ 
> (I haven't found its source yet). Maybe we could leave this code alone if we 
> change that file, instead? Then, both on Guix System and on foreign distros, 
> some system-wide code would be responsible for initializing these search 
> paths, and we could assume in contexts like this that they are explicitly set 
> and not empty.

Yes, changing /etc/profile.d/ sounds better: it allows us to
provide a solution specifically for foreign distros.

This file is created by ‘etc/’, the installation script
given at <>.

> One catch is that, right now, this is what was installed for me into 
> /etc/profile.d/


> but $HOME/.guix-profile doesn't exist for me (only $HOME/.guix-home), so this 
> script exits without setting GUIX_LOCPATH or XDG_DATA_DIRS. Maybe something 
> about that should change?

Yes, that too!  We should change it so that it checks
~/.guix-home/profile and ~/.guix-profile (in that order) and picks the
right one.

Would you like to give it a try?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]