From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timothy Sample Subject: Re: GDM update! Date: Tue, 12 Feb 2019 10:39:52 -0500 Message-ID: <87va1p9fsn.fsf@ngyro.com> References: <875ztrp982.fsf@gnu.org> <20190211153946.2a38a740@scratchpost.org> <87y36mbav3.fsf@ngyro.com> <87r2cdksc6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtaIu-0007Xt-Pe for guix-devel@gnu.org; Tue, 12 Feb 2019 10:49:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtaH4-0007gx-Cp for guix-devel@gnu.org; Tue, 12 Feb 2019 10:47:07 -0500 In-Reply-To: <87r2cdksc6.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 12 Feb 2019 15:13:29 +0100") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Hi Ludo, Ludovic Court=C3=A8s writes: > Hello! > > Timothy Sample skribis: > >> Maybe the GDM folks expect that we write a custom =E2=80=9C.desktop=E2= =80=9D file that >> runs a custom script that checks for =E2=80=9C~/.xsession=E2=80=9D and r= uns it. It >> could use =E2=80=9CTryExec=E2=80=9D to figure out if =E2=80=9C~/.xsessio= n=E2=80=9D exists, and offer it >> to the user (in the session selector) in that case. To be concrete, we >> would create a =E2=80=9Cuser.desktop=E2=80=9D session file with the foll= owing contents. >> >> [Desktop Entry] >> Name=3DUser Session >> Comment=3DStart a user-defined session >> Exec=3Drun-user-xsession >> TryExec=3Dxsession-exists-p >> Icon=3D >> Type=3DApplication >> >> Here, =E2=80=9Crun-user-xsession=E2=80=9D and =E2=80=9Cxsession-exists-p= =E2=80=9D are custom scripts >> that we would write. If this file were somewhere that GDM knows about >> (e.g., =E2=80=9C/run/current-system/profile/share/xsessions=E2=80=9D), i= t should work. > > We could do that, or should we just arrange for GDM to honor .xsession > when it exists just like we do for SLiM? > > Specifically I=E2=80=99m thinking of the =E2=80=98xinitrd=E2=80=99 proced= ure in (gnu services > xorg) and how we pass it to SLiM via =E2=80=98slim.cfg=E2=80=99. > > WDYT? Do you mean that we should not use the GDM-provided =E2=80=9CXsession=E2=80= =9D script and tell GDM to run an =E2=80=9Cxinitrc=E2=80=9D script generated by the = =E2=80=9Cxinitrc=E2=80=9D procedure? This would work. In fact, the way that our =E2=80=9Cxinitrc=E2= =80=9D (by default) looks for session files in user profiles is a major improvement. Indeed, it makes more sense to replace the script entirely than to try and carefully construct everything so that it does what we want. This is especially true considering that upstream expects distros to replace the script anyway. We will have to pass the script in as a variable. I will do this on top of my changes (which I hope to send in today). -- Tim