GNU bug report logs - #26202
Guix in foreign distributions: setting XDG_DATA_DIRS causes user session to not start

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: adfeno@HIDDEN; dated Tue, 21 Mar 2017 02:25:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug submitter to 'adfeno@HIDDEN' from 'Adonay Felipe Nogueira <adfeno@HIDDEN>' Request was from Adonay Felipe Nogueira <adfeno@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'important' from 'normal' Request was from ludo@HIDDEN (Ludovic Courtès) to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Mar 2017 23:44:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 24 19:44:28 2017
Received: from localhost ([127.0.0.1]:42904 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1crYsd-00051Y-UT
	for submit <at> debbugs.gnu.org; Fri, 24 Mar 2017 19:44:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38243)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <adfeno@HIDDEN>) id 1crYsc-00051M-5M
 for submit <at> debbugs.gnu.org; Fri, 24 Mar 2017 19:44:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <adfeno@HIDDEN>) id 1crYsW-0000Gm-2J
 for submit <at> debbugs.gnu.org; Fri, 24 Mar 2017 19:44:20 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:55812)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <adfeno@HIDDEN>)
 id 1crYsV-0000Gh-VO
 for submit <at> debbugs.gnu.org; Fri, 24 Mar 2017 19:44:19 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57434)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <adfeno@HIDDEN>) id 1crYsU-00026E-AA
 for bug-guix@HIDDEN; Fri, 24 Mar 2017 19:44:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <adfeno@HIDDEN>) id 1crYsQ-0000Ec-65
 for bug-guix@HIDDEN; Fri, 24 Mar 2017 19:44:18 -0400
Received: from lb1.openmailbox.org ([5.79.108.160]:48584
 helo=mail.openmailbox.org)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <adfeno@HIDDEN>)
 id 1crYsP-0000E8-VL
 for bug-guix@HIDDEN; Fri, 24 Mar 2017 19:44:14 -0400
Received: by mail.openmailbox.org (Postfix, from userid 20002)
 id A90E9516973; Sat, 25 Mar 2017 00:44:11 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org;
 s=openmailbox; t=1490399052;
 bh=mjUAHRZi3EyEbPdOZmSwDJLbh7kSPTH6Nkl0r8DyPaw=;
 h=From:To:Subject:References:Date:In-Reply-To:From;
 b=YSwIr0KQG7Ao2CBfco2HtaLXFGqiOppr85ci4dsV6jOWBEdpv4Zn7DMkkpcIrCH77
 BtLi6LwTMvHbchP6h7yq40lXZ0Xk+7xiHcYCLeJZ5aCTdTPsEvo4ltOmVd2dc7CvH+
 rfmweUEMvoE6YPBaFWDcfrIAGbEt73ATtCnCMFw0=
From: Adonay Felipe Nogueira <adfeno@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org;
 s=openmailbox; t=1490399051;
 bh=mjUAHRZi3EyEbPdOZmSwDJLbh7kSPTH6Nkl0r8DyPaw=;
 h=From:To:Subject:References:Date:In-Reply-To:From;
 b=SSOFRWQ3rcbkQ+ORmKUj9KL7Cse4u4IvUqXGrGGYoUUY+QRfNoN7XAu+gsu+G0OF2
 GDwwNUIeR25bxgRTSK/HrcuqxLWQz2bYwU5k+mJ55p75NP7o80j2Mh6o5sF8fthGNk
 hlqLryxIKpIhv8le+Yab/C4k93Jm0sonaI/s+UWc=
To: bug-guix@HIDDEN
Subject: Re: bug#26202: Guix in foreign distributions: setting XDG_DATA_DIRS
 causes user session to not start
References: <878tnz74fm.fsf@HIDDEN>
Date: Fri, 24 Mar 2017 20:44:02 -0300
In-Reply-To: <878tnz74fm.fsf@HIDDEN> (Adonay Felipe Nogueira's
 message of "Mon, 20 Mar 2017 23:24:13 -0300")
Message-ID: <87wpbefdfh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

It turns out that the XDG_DATA_DIRS bug is due to foreign distributions
using some Xsession.d scripts that do tests to check if that variable is
empty, and if it does exist, then they do nothing. This causes the
system to simply not set XDG_DATA_DIRS to useful values for foreign
distributions, thus leaving the user with a never-ending log-in loop.

So what must the user do?

1. Test without setting XDG_DATA_DIRS, and take note of its value.

2. Set XDG_DATA_DIRS as Guix tells you to, however, replace the
following part:

${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS

With the following:

:[Value that you took note of, without this surrounding braces.]

I hope this helps. :)


Respectfully, Adonay.
--=20
- [[https://libreplanet.org/wiki/User:Adfeno]]
- Palestrante e consultor sobre /software/ livre (n=C3=A3o confundir com
  gratis).
- "WhatsApp"? Ele n=C3=A3o =C3=A9 livre, por isso n=C3=A3o uso. Iguais a el=
e prefiro
  Ring, ou Tox. Quer outras formas de contato? Adicione o vCard que
  est=C3=A1 no endere=C3=A7o acima aos teus contatos.
- Pretende me enviar arquivos .doc, .ppt, .cdr, ou .mp3? OK, eu
  aceito, mas n=C3=A3o repasso. Entrego apenas em formatos favor=C3=A1veis =
ao
  /software/ livre. Favor entrar em contato em caso de d=C3=BAvida.
- "People said I should accept the world. Bullshit! I don't accept the
  world."
                                                 --- Richard Stallman




Information forwarded to bug-guix@HIDDEN:
bug#26202; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Mar 2017 02:24:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 20 22:24:39 2017
Received: from localhost ([127.0.0.1]:37062 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cq9TT-0001Pt-Ih
	for submit <at> debbugs.gnu.org; Mon, 20 Mar 2017 22:24:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55513)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <adfeno@HIDDEN>) id 1cq9TQ-0001Pe-EB
 for submit <at> debbugs.gnu.org; Mon, 20 Mar 2017 22:24:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <adfeno@HIDDEN>) id 1cq9TK-0000wZ-B9
 for submit <at> debbugs.gnu.org; Mon, 20 Mar 2017 22:24:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:47187)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <adfeno@HIDDEN>)
 id 1cq9TK-0000wT-7h
 for submit <at> debbugs.gnu.org; Mon, 20 Mar 2017 22:24:30 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46465)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <adfeno@HIDDEN>) id 1cq9TJ-0002YR-0p
 for bug-guix@HIDDEN; Mon, 20 Mar 2017 22:24:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <adfeno@HIDDEN>) id 1cq9TE-0000ru-Kk
 for bug-guix@HIDDEN; Mon, 20 Mar 2017 22:24:29 -0400
Received: from lb1.openmailbox.org ([5.79.108.160]:39436
 helo=mail.openmailbox.org)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <adfeno@HIDDEN>)
 id 1cq9TE-0000pi-BR
 for bug-guix@HIDDEN; Mon, 20 Mar 2017 22:24:24 -0400
Received: by mail.openmailbox.org (Postfix, from userid 20002)
 id A8533512F6E; Tue, 21 Mar 2017 03:24:20 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org;
 s=openmailbox; t=1490063061;
 bh=ZLxsnQEi3x/f7w5nAuIl8K02485hbjBTLNkboSj5pCc=;
 h=From:To:Subject:Date:From;
 b=NUF8cAEIKWGqYI0JPrSfD7bJAgoiZUzmATdT5IDKPKL2azwSc4OuTzCs3NsPFFDwQ
 urZ7HJE31VU//h/GMo5fqX7ty4oj/q2E+D094BBnxCHi0U/l4ePi/nPqPHqnw2T00q
 5Ckg52aRTEp8vUJ0ahWCM5DUaRTyE3Empev9pIT4=
From: Adonay Felipe Nogueira <adfeno@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org;
 s=openmailbox; t=1490063058;
 bh=ZLxsnQEi3x/f7w5nAuIl8K02485hbjBTLNkboSj5pCc=;
 h=From:To:Subject:Date:From;
 b=fUJnpI3nq7RN2e+ldIVNw60hkWXwgyNS9g8GAxK8/9WyN5wAvcuQWlwzfdLt/OSQt
 IZaqTrJf8W0stDRhX35Sa/OMJV5a4n6HgtNMSTJSwpKNlbYIL1XxUruVcPuHcR8zzj
 VYB3t6wNTr4YPSnM9SCThOp9UXMuEm/2zdUzzM5c=
To: =?utf-8?Q?Relat=C3=B3rios?= de falhas do Guix e GuixSD <bug-guix@HIDDEN>
Subject: Guix in foreign distributions: setting XDG_DATA_DIRS causes user
 session to not start
Date: Mon, 20 Mar 2017 23:24:13 -0300
Message-ID: <878tnz74fm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

* Steps to reproduce

1. Edit "~/.profile" and add:

export GUIX_PROFILE=3D"${HOME}/.guix-profile"
export XDG_DATA_DIRS=3D"${GUIX_PROFILE}/share${XDG_DATA_DIRS:+:}$XDG_DATA_D=
IRS"

2. Log out and try to log in again.

* Current behavior

The *host's* GNOME Flashback session (gnome-session
--session=3Dgnome-flashback) attempts to start, however, it's aborted
shortly after successful log-in.

"~/.xsession-errors" file shows something similar to:

# Begin of file
gnome-session: GLib-GIO-ERROR: Settings schema
'org.gnome.SessionManager' is not installed.

aborting...
# End of file

* Additional information

- In this case, I'm using Trisquel 7.
- `gnome-session` command is provided by the
  "gnome-session-bin", version 3.9.90-0ubuntu12.1+7.0trisquel2.
- Display manager is lightdm (Trisquel 7's default), version
  1.10.6-0ubuntu1+7.0trisquel1.
- Being a "~/.profile" setting, the problem is not found unless the user
- logs-out and back in.

* Personal comment

This might become a problem if Guix starts suggesting people to
customize $XDG_DATA_DIRS in their "~/.profile".


Respectfully, Adonay.
--=20
- [[https://libreplanet.org/wiki/User:Adfeno]]
- Palestrante e consultor sobre /software/ livre (n=C3=A3o confundir com
  gratis).
- "WhatsApp"? Ele n=C3=A3o =C3=A9 livre, por isso n=C3=A3o uso. Iguais a el=
e prefiro
  Ring, ou Tox. Quer outras formas de contato? Adicione o vCard que
  est=C3=A1 no endere=C3=A7o acima aos teus contatos.
- Pretende me enviar arquivos .doc, .ppt, .cdr, ou .mp3? OK, eu
  aceito, mas n=C3=A3o repasso. Entrego apenas em formatos favor=C3=A1veis =
ao
  /software/ livre. Favor entrar em contato em caso de d=C3=BAvida.
- "People said I should accept the world. Bullshit! I don't accept the
  world."
                                                 --- Richard Stallman




Acknowledgement sent to Adonay Felipe Nogueira <adfeno@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#26202; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 9 Jan 2018 13:45:02 UTC

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