guix-install.sh set XDG_DATA_DIRS before sourcing profile

  • Open
  • quality assurance status badge
Details
One participant
  • Fredrik Salomonsson
Owner
unassigned
Submitted by
Fredrik Salomonsson
Severity
normal

Debbugs page

Fredrik Salomonsson wrote 5 years ago
(address . bug-guix@gnu.org)
87sgebqfxb.fsf@gmail.com
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
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 42157@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 42157
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help