From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?5a6L5paH5q2m?= Subject: Re: SLiM session types Date: Sun, 08 Mar 2015 22:28:03 +0800 Message-ID: <87mw3ntvgs.fsf@gmail.com> References: <87h9xtwruo.fsf@gnu.org> <87iohh53ff.fsf@gnu.org> <87388jve1p.fsf@gmail.com> <878uibo9fx.fsf_-_@gnu.org> <20150307145026.GA9102@venom> 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]:39521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUcBM-00042h-SU for guix-devel@gnu.org; Sun, 08 Mar 2015 10:27:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUcBJ-0002aY-NR for guix-devel@gnu.org; Sun, 08 Mar 2015 10:27:52 -0400 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:39502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUcBJ-0002aN-Fz for guix-devel@gnu.org; Sun, 08 Mar 2015 10:27:49 -0400 Received: by pabrd3 with SMTP id rd3so32226444pab.6 for ; Sun, 08 Mar 2015 07:27:48 -0700 (PDT) In-Reply-To: <20150307145026.GA9102@venom> 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: tcech@suse.cz, guix-devel@gnu.org tcech@suse.cz writes: > On Sat, Dec 13, 2014 at 04:28:50PM +0100, Ludovic Court=C3=A8s wrote: >>=E5=AE=8B=E6=96=87=E6=AD=A6 skribis: >> >>> And currently ratposion and windowmaker are hardcoded, >>> how about make sessions configurable? >>> Like: >>> (define %default-sessions >>> `(("windowmaker" . #~(execl #$windowmaker "/bin/wmaker")) >>> ("ratposion" . #~(execl #$ratposion "/bin/ratposion")))) >>> >>> (define* (slim-service #:key (sessions %default-sessions) >>> ... >> >>I agree that something along these lines is needed. >> >>However, these session types are currently unused. SLiM is supposed to >>support session choice from the log-in screen, but for that, a >>=E2=80=98session_dir=E2=80=99 key needs to be added to slim.cfg (in xorg.= scm). >> >>The =E2=80=98session_dir=E2=80=99 value should be the name of a directory= containing >>entries describing the various session types available, in a format that >>SLiM understands. > > I'm not able to understand how the proposed solution should work and > it's a bit unclear to me what is needed to do to add new session - > enlightenment in my case. > > Is there reason, why xsession files should not be stored within > profile? I can hardly imagine login manager with session selection to > be anything else than system wide service and in that case path like > /run/current-system/profile/share/xsessions sounds like proper place. Hi, I just sent 2 patches to remove all the xsessions stuff in xorg.scm. And use /run/current-system/profile/share/xsessions as sessiondir. After this, one can get a xfce session by put 'xfce' in 'packages'. While 'openbox' and 'sawfish' also provide xsession file, 'windowmaker' and 'ratposion' not. We can put 'exec ratposion' in ~/.xsession to start it, or patch the package to install a xsession file to its $out/share/xsessions if really needed. > > In any case, it would be helpful if packager could just ignore this > architectural decisions and could use some function which returns > desired target directory for xsession files (maybe defining as public > xsessions-directory from gnu/services/xorg.scm?) or even take xsession > file name as argument and do whatever is needed. > > And one additional question - if xsession file can be part of multiple > profiles, I can't install or create symlink to target directory during > the build, but it needs to be done on adding to profile - is there any > hook for that? > > TIA for answers, > > S_W