From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timothy Sample Subject: Re: GDM update! Date: Mon, 11 Feb 2019 10:31:12 -0500 Message-ID: <87y36mbav3.fsf@ngyro.com> References: <875ztrp982.fsf@gnu.org> <20190211153946.2a38a740@scratchpost.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]:57060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtDYC-00080x-9g for guix-devel@gnu.org; Mon, 11 Feb 2019 10:31:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtDYB-0007NJ-4A for guix-devel@gnu.org; Mon, 11 Feb 2019 10:31:16 -0500 In-Reply-To: <20190211153946.2a38a740@scratchpost.org> (Danny Milosavljevic's message of "Mon, 11 Feb 2019 15:39:46 +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: Danny Milosavljevic Cc: guix-devel@gnu.org Hi Danny, Danny Milosavljevic writes: > Hi Ludo, > > https://github.com/GNOME/gdm/commit/0bb8a777cfc0a3bc53c2c2830dd7e6e2baeee= f38#diff-9b802b1ffb5f0ff95bfaa85046d262e7 says: > >>custom is a magic name we used to allow for having the user decide >> their session by a ~/.xsession file. We no longer support that >> construct and haven't for many years. Instead, users who want that >> functionality can just add a xsession file to accomplish it. >>This commit just removes some left over cruft that never got cleaned up. > > [...] Thanks! I didn=E2=80=99t see this before writing my other message, but it explains why the comments and code don=E2=80=99t match. 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 runs= it. It could use =E2=80=9CTryExec=E2=80=9D to figure out if =E2=80=9C~/.xsession= =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 followi= ng 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), it s= hould work. -- Tim