unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: 35308@debbugs.gnu.org
Subject: bug#35308: GDM refuses to log into Gnome Shell
Date: Fri, 17 Dec 2021 13:26:17 +0100	[thread overview]
Message-ID: <87fsqre7ti.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87zhoo8pl7.fsf@nicolasgoaziou.fr>

Hello,

Josselin Poiret via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> I went a bit further:
>>
>> The issue is not specifically glib-related, but can be reproduced with
>> any package using the following:
>>
>>   (search-path-specification
>>    (variable "XDG_DATA_DIRS")
>>    ...)

[...]

> The XDG specification says that if XDG_DATA_DIRS is unset, a default
> value of `/usr/local/share/:/usr/share/` should be used in its place.
> On Debian, that env var is not explicitely set, so applications use that
> default value, but when we prepend to it, it effectively removes both of
> these directories from the search path.
>
> As a workaround, you can do `export
> XDG_DATA_DIRS=/usr/local/share/:/usr/share/` right before sourcing the
> guix profile in your .bash_profile.

You're right. The above fixes the issue with fontconfig. Unfortunately,
the problem persists with the minimal manifest:

  (specifications->manifest '("python-matplotlib"))

So there's something else going on.

In order to fix the above, I need to put

  unset GI_TYPELIB_PATH

in my .profile, after having sourced Guix profile. Maybe this
environment variable also has a special default value when unset.

> I don't know what the best course
> of action here is to have better OOB support.  Is it possible to have
> env vars set by Guix have a default value if unset?

I think it is desirable, in particular for fontconfig, which is
a recommended package in the manual. The part of Guix responsible for
generating the profile file may be more careful when setting
XDG_DATA_DIRS, e.g., with something like (untested):

export XDG_DATA_DIRS=\
"${GUIX_PROFILE:-/gnu/store/…-profile}/share${XDG_DATA_DIRS:+:}${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}"

Regards,
-- 
Nicolas Goaziou




  reply	other threads:[~2021-12-17 12:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-17 18:16 bug#35308: GDM refuses to log into Gnome on Debian 9 or 10 Nicolas Goaziou
2020-05-15 14:49 ` zimoun
2020-05-15 15:02   ` Nicolas Goaziou
2020-05-15 15:19     ` zimoun
2020-05-15 19:38 ` Nicolas Goaziou
2020-11-19 14:03 ` bug#35308: GDM refuses to log in with propagated glib Nicolas Goaziou
2021-12-17  9:00 ` bug#35308: GDM refuses to log into Gnome Shell (was: GDM refuses to log into Gnome on Debian 9 or 10) Nicolas Goaziou
2021-12-17 10:52   ` Josselin Poiret via Bug reports for GNU Guix
2021-12-17 12:26     ` Nicolas Goaziou [this message]
2021-12-17 12:33       ` bug#35308: GDM refuses to log into Gnome Shell Josselin Poiret via Bug reports for GNU Guix
2021-12-17 17:11         ` Nicolas Goaziou
2023-07-06  9:31 ` bug#35308: GDM refuses to log into Gnome on Debian 9 or 10 Rafa Gálvez

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=87fsqre7ti.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=35308@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).