GNU bug report logs - #42157
guix-install.sh set XDG_DATA_DIRS before sourcing profile

Previous Next

Package: guix;

Reported by: Fredrik Salomonsson <plattfot <at> gmail.com>

Date: Wed, 1 Jul 2020 17:55:01 UTC

Severity: normal

To reply to this bug, email your comments to 42157 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#42157; Package guix. (Wed, 01 Jul 2020 17:55:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fredrik Salomonsson <plattfot <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 01 Jul 2020 17:55:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Salomonsson <plattfot <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: guix-install.sh set XDG_DATA_DIRS before sourcing profile
Date: Wed, 01 Jul 2020 10:54:40 -0700
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




This bug report was last modified 3 years and 270 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.