From: ludo@gnu.org (Ludovic Courtès)
To: 宋文武 <iyzsong@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] services: xorg: Make SLiM sessions configurable.
Date: Wed, 17 Dec 2014 00:03:57 +0100 [thread overview]
Message-ID: <87d27jp57m.fsf@gnu.org> (raw)
In-Reply-To: <1418661051-527-1-git-send-email-iyzsong@gmail.com> ("宋文武"'s message of "Tue, 16 Dec 2014 00:30:51 +0800")
宋文武 <iyzsong@gmail.com> skribis:
> * gnu/services/xorg.scm (%default-xsessions): New variable.
> (xsessions-directory): New procedure.
> (slim-service): Add #:sessions parameter.
> [slim.cfg]: Honor #:sessions.
> (xinitrc): Adjust accordingly.
Nice!
> - ;; Then try a pre-configured session type.
> - (let ((ratpoison (string-append #$ratpoison "/bin/ratpoison"))
> - (wmaker (string-append #$windowmaker "/bin/wmaker")))
> - (match (command-line)
> - ((_ "ratpoison")
> - (exec-from-login-shell ratpoison))
> - (_
> - (exec-from-login-shell wmaker))))))
> -
> + ;; Then run the selected session.
> + (exec-from-login-shell (cadr command-line))))
Please keep ‘match’ instead of ‘cadr’.
Also, the line above should be (cadr (command-line)) instead of (cadr
command-line).
Lastly, there’s a problem when #:auto-login? is #t because
(command-line) returns a 1-element list. This will be naturally fixed
when the ‘match’ form above is reinstated.
> +(define %default-xsessions
> + (list (text-file* "wmaker.desktop" "
Add a comment below ‘%default-xsessions’, like
;; List of monadic values denoting for .desktop files blah blah
> +(define (xsessions-directory sessions)
> + "Return a directory contains SESSIONS, which should be a list of monadic
s/contains/containing/
Other than that, it looks fine to me. Could you send an updated
version?
Thanks!
Ludo’.
next prev parent reply other threads:[~2014-12-16 23:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-15 16:30 [PATCH] services: xorg: Make SLiM sessions configurable 宋文武
2014-12-16 23:03 ` Ludovic Courtès [this message]
2014-12-19 16:08 ` 宋文武
2014-12-19 21:24 ` Ludovic Courtès
2014-12-20 3:12 ` 宋文武
2014-12-21 11:09 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d27jp57m.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=iyzsong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.