Subject: Re: bug#55042: python-scipy breaks login on foreign distro

From: Maxim Cournoyer <[email-masked]>
Date: Thu, 21 Apr 2022 11:40:13 -0400

Hi Simon,

zimoun <[email-masked]> writes:

> Hi,
>
> Running Guix on the top of Ubuntu, GDM refuses to log in if the package
> “python-scipy” is installed and its profile sourced.
>
> Basically, consider
>
>     mkdir -p ~/.config/guix/profiles
>     guix package -i python-scipy -p ~/.config/guix/profiles/python
>
> Then also consider that the file ~/.bash_profile contains:
>
> GUIX_PROFILE=~/.config/guix/profiles/python
> . $GUIX_PROFILE/etc/profile
>
>
> which basically export:
>
> export PATH="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/bin${PATH:+:}$PATH"
> export XDG_DATA_DIRS="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
> export GI_TYPELIB_PATH="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/lib/girepository-1.0${GI_TYPELIB_PATH:+:}$GI_TYPELIB_PATH"
> export GUIX_PYTHONPATH="${GUIX_PROFILE:-/gnu/store/qij79rxcr8jpjzh1rqv63ckajvivdxfn-profile}/lib/python3.9/site-packages${GUIX_PYTHONPATH:+:}$GUIX_PYTHONPATH"

It's probably XDG_DATA_DIRS; could you try unsetting it?  See the old
bug #26202, which looks like a duplicate to me.

Thanks,

Maxim