From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?5a6L5paH5q2m?= Subject: Re: [PATCH 1/2] services: slim: Use /run/current-system/profile/share/xsessions as sessiondir. Date: Tue, 10 Mar 2015 17:20:19 +0800 Message-ID: References: <1425824080-350-1-git-send-email-iyzsong@gmail.com> <87zj7lp7ea.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 ([2001:4830:134:3::10]:37114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVGKs-0000e0-4k for guix-devel@gnu.org; Tue, 10 Mar 2015 05:20:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVGKq-0003gQ-EM for guix-devel@gnu.org; Tue, 10 Mar 2015 05:20:22 -0400 In-Reply-To: <87zj7lp7ea.fsf@gnu.org> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix-devel 2015-03-10 16:46 GMT+08:00 Ludovic Court=C3=A8s : > =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > >> * gnu/services/xorg.scm (, %windowmaker-session-type) >> (%ratposion-session-type, %sawfish-session-type, %default-xsessions) >> (xsessions-directory): Remove. >> (slim-service): Remove #:sessions parameter. >> [slim.cfg]: Use /run/current-system/profile/share/xsessions as session= dir. >> * doc/guix.texi : Adjust accordingly. > > [...] > >> -(define (xsessions-directory sessions) >> - "Return a directory containing SESSIONS, a list of obj= ects. >> -The alphabetical order of the files in that directory match the order o= f the >> -elements in SESSIONS." > > This patch looks like a desirable simplification. However, we would > lose the ability to specify the order in which sessions are presented to > the user (added in commit a21b23d3.) > > Any idea how we could preserve that property? Have no idea here, since now xsession files are unmodified, and login managers usually choose the order alphabetical. But other login managers (eg: lightdm) will remember the lasted select session. (If this helps :-) > > Thanks, > Ludo=E2=80=99.