From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: GDM future work Date: Sat, 05 Jan 2019 22:21:29 +0100 Message-ID: <87muoe242u.fsf@gnu.org> References: <87y387kl6v.fsf@ngyro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggsout.gnu.org ([209.51.188.92]:53489 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gftO4-0006ON-QC for guix-devel@gnu.org; Sat, 05 Jan 2019 16:21:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gftNz-0007y8-Sx for guix-devel@gnu.org; Sat, 05 Jan 2019 16:21:44 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:52656) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gftNy-0007rN-2X for guix-devel@gnu.org; Sat, 05 Jan 2019 16:21:38 -0500 In-Reply-To: <87y387kl6v.fsf@ngyro.com> (Timothy Sample's message of "Sun, 30 Dec 2018 11:56:24 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Timothy Sample Cc: guix-devel@gnu.org Hi Timothy! Timothy Sample skribis: > I have been using GDM on GuixSD for the past few days, and I am quite > happy with it. A few patches that make it usable just landed on > master. Nice! > The main issue is the way that GDM launches the session bus (the > instance of D-Bus that manages the session). It launches it from a > clean environment that has little more than what PAM gives from > =E2=80=9C/etc/environment=E2=80=9D (and =E2=80=9C~/.pam_environment=E2=80= =9D, if it exists). The result > is that D-Bus can=E2=80=99t find any services, because it doesn=E2=80=99t= have > =E2=80=9CXDG_DATA_DIRS=E2=80=9D set. > > Currently, this is solved by patching GDM to thread =E2=80=9CXDG_DATA_DIR= S=E2=80=9D into > the process the launches D-Bus, but that=E2=80=99s not great. There are = at > least two better options. > > (1) Extend the PAM environment service so that it puts important > environment variables for D-Bus in =E2=80=9C/etc/environment=E2=80=9D. T= his is easy to > do, and fits pretty naturally with the way that GDM works. > > (2) Set up a wrapper script for D-Bus like the wrapper script we > currently use for X. This way, we could very precisely set up where the > session bus looks for system and user service files. This seems to be > more like =E2=80=9Cthe Guix way=E2=80=9D, but it would mean threading a > =E2=80=9CGDM_DBUS_LAUNCH=E2=80=9D environment variable through the GDM co= de (like we > currently do with =E2=80=9CGDM_X_SERVER=E2=80=9D). Option #2 looks reasonable to me (for the reasons you wrote, =E2=80=9Cstatic binding=E2=80=9D and all.) > Besides these two options, I get tempted to think even bigger. We could > replace a lot of the GDM session initialization code with our own code, > and then if we only had per-session Shepherd instances=E2=80=A6. That=E2= =80=99s > probably too big for right now. :) Heh, sounds tempting=E2=80=A6 once 1.0 is out! :-) > Besides this, there are few straight-forward things to do. We need to > make a =E2=80=9Clibgdm=E2=80=9D package that does not depend on =E2=80=9C= gnome-shell=E2=80=9D [1]. It > would be nice to fill out the config record and get rid of the opaque > configuration text file. We need documentation for GDM in the manual. > Finally, I already miss the Guix logo from SLiM, so even if it is not > the default, I would like a Guix theme to be available. :) > > I will chip away at these as I have time, but of course anyone is > welcome to jump on them if I=E2=80=99m too slow. Cool, I=E2=80=99d be happy to test it, let us know when you=E2=80=99d like = to get test feedback! Thanks for working on it! Ludo=E2=80=99.