unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Fredrik Salomonsson <plattfot@gmail.com>
To: 42157@debbugs.gnu.org
Subject: bug#42157: guix-install.sh set XDG_DATA_DIRS before sourcing profile
Date: Wed, 01 Jul 2020 10:54:40 -0700	[thread overview]
Message-ID: <87sgebqfxb.fsf@gmail.com> (raw)


Hi,

I encountered an issue when installing guix using the installer script
on Arch Linux. I'm using a quite simple setup, with only SDDM and sway,
so no XDG environment variables are set.

Noticed after I've installed guix, things started braking. I tracked it
down to the `XDG_DATA_DIRS` environment variable only contained paths to
the guix store.

The guix.sh script does set `XDG_DATA_DIRS` to
/usr/local/share/:/usr/share/ if it's not defined. But it does that
after it has sourced the `$GUIX_PROFILE/etc/profile`. Which for me adds
some paths to the `XDG_DATA_DIRS` and therefore the default paths are
not added.

I worked around the issue by adding a script to the /etc/profile.d that
sets the `XDG_DATA_DIRS` to `/usr/local/share/:/usr/share/` and made
sure it got loaded before the guix.sh script (named it 00-xdg.sh).

But might be good to make sure `XDG_DATA_DIRS` is set to the default
paths before it sources the profile. To avoid this issue for other
users.

Thanks

-- 
s/Fred[re]+i[ck]+/Fredrik/g




                 reply	other threads:[~2020-07-01 17:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87sgebqfxb.fsf@gmail.com \
    --to=plattfot@gmail.com \
    --cc=42157@debbugs.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).