From: Giovanni Biscuolo <g@xelera.eu>
To: Meiyo Peng <meiyo@riseup.net>
Cc: guix-devel@gnu.org
Subject: Re: XDG_DATA_DIRS issue in execution environment on LTSP
Date: Thu, 28 Mar 2019 12:22:20 +0100 [thread overview]
Message-ID: <8736n7b5w3.fsf@roquette.mug.biscuolo.net> (raw)
In-Reply-To: <878swz930e.fsf@riseup.net>
[-- Attachment #1: Type: text/plain, Size: 1892 bytes --]
Hi Meiyo,
Meiyo Peng <meiyo@riseup.net> writes:
[...]
> According to the XDG Base Directory Specification [1]:
>
> #+begin_quote
> If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used.
> If $XDG_CONFIG_DIRS is either not set or empty, a value equal to /etc/xdg should be used.
> #+end_quote
Thanks for the quote, I missed to read that
> And according to my experience, $XDG_DATA_DIRS and $XDG_CONFIG_DIRS are
> not set by default on Debian. So they should be set to their default
> values before adding extra paths to them.
Ha ha: now I understand!
> Thus I have this code snippet in my login shell's config (fish rather
> than bash). Fish script is very easy to understand. I think you can
> translate it into bash.
Yes, it's very clear, thanks!
>
> #+begin_src fish
> if status is-login || status is-interactive
> set -gx MY_PROFILE "$HOME/.guix-profile"
>
> # Guix on foreign distros.
> # This test is a dirty hack.
> if test -d /var/guix && ! test -L /run/current-system
This is to distingush if Guix is running natively (which means we do not
need to "manually" set our env) from Guic on forein distros: right?
[...]
> # XDG
> # ==========> Look at here! <=========
> # Set $XDG_CONFIG_DIRS and $XDG_DATA_DIRS to their default
> # values if they are not set.
> test "$XDG_CONFIG_DIRS" = "" && set -gx XDG_CONFIG_DIRS "/etc/xdg"
> test "$XDG_DATA_DIRS" = "" && set -gx XDG_DATA_DIRS "/usr/local/share:/usr/share"
Got it: I have to port this to my bash ~/.profile, thanks!
[...]
>
> [1]. XDG Base Directory Specification
> https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
Thanks! Gio'
--
Giovanni Biscuolo
Xelera IT Infrastructures
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2019-03-28 11:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-27 14:51 XDG_DATA_DIRS issue in execution environment on LTSP Giovanni Biscuolo
2019-03-28 1:55 ` Meiyo Peng
2019-03-28 2:35 ` Meiyo Peng
2019-03-28 11:22 ` Giovanni Biscuolo [this message]
2019-03-28 11:51 ` Meiyo Peng
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8736n7b5w3.fsf@roquette.mug.biscuolo.net \
--to=g@xelera.eu \
--cc=guix-devel@gnu.org \
--cc=meiyo@riseup.net \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.