unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: 宋文武 <iyzsong@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] services: xorg: Make SLiM sessions configurable.
Date: Sat, 20 Dec 2014 11:12:28 +0800	[thread overview]
Message-ID: <87egrv3tgj.fsf@gmail.com> (raw)
In-Reply-To: <87a92juydk.fsf@gnu.org>

Ludovic Courtès <ludo@gnu.org> writes:

> 宋文武 <iyzsong@gmail.com> skribis:
>
>> From 144bf00b86f6884615d986598ccc62a3c4747eef Mon Sep 17 00:00:00 2001
>> From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@gmail.com>
>> Date: Tue, 16 Dec 2014 00:21:46 +0800
>> Subject: [PATCH] services: xorg: Make SLiM sessions configurable.
>>
>> * gnu/services/xorg.scm (%default-xsessions): New variable.
>>   (xsessions-directory): New procedure.
>>   (slim-service): Add #:sessions and #:auto-login-session parameters.
>>   [slim.cfg]: Honor #:sessions.
>>   (xinitrc): Adjust accordingly.
>
> LGTM.  However, please leave .xsession (instead of .xinitrc) in this
> patch.  The change to .xinitrd should be done separately.
>
>> +          ;; First, try to run ~/.xinitrc with the specified session.
>> +          (exec-from-login-shell (string-append home "/.xinitrc") session)
>> +          ;; Then starts the specified session directly.
>> +          (exec-from-login-shell session))))
>
> s/Then starts/Then try to start/
>
> OK to push with these two changes.
Done, thanks for review!
>
>> In additation, I pass session to ~/.xinitrc (replace ~/.xsession, since
>> it's what to expect from slim according to [1][2]).
>
> [...]
>
>> [1] https://wiki.archlinux.org/index.php/Slim#Environments
>> [2] https://lists.gnu.org/archive/html/guix-devel/2014-12/msg00282.html
>
> I wasn’t sure about .xsession vs .xinitrc, so I did some research.
>
> <https://wiki.ubuntu.com/CustomXSession> reads:
>
>   Your login script, .xinitrc, works with startx, but graphical login
>   managers like GDM do not look for .xinitrc.  Instead, they look for a
>   file named .xsession in your home directory.
>
> Likewise, <https://wiki.debian.org/Xinitrc> reads:
>
>   Note that ~/.xinitrc is only for configuring the initialization of
>   xinit.  If you want the script to be called when ever an X Session is
>   started, then you should instead use ~/.xsession.
>
> Someone at
> <http://unix.stackexchange.com/questions/47359/what-is-xsession-for>
> writes:
>
>   If you log in in graphical mode on an X display manager (xdm, gdm,
>   kdm, wdm, lightdm, …), traditionally, what is executed after you log
>   in is some scripts in /etc/X11 then ~/.xsession.
>
> Citing the ‘startx’ man page on Debian at
> <http://marc.info/?l=debian-user&m=108078928208265>:
>
>   Keep in mind that .xinitrc is used only by xinit(1) and completely
>   ignored by xdm(1).
>
> So it seems that the Right Thing is to use ~/.xsession in our case.
> WDYT?
OK, it seem that only SLiM use ~/.xinitrc instead of ~/.xsession.
IMO, It's fine to stick with ~/.xsession if we add other login
managers later.
>
> (I think we should provide a ‘startx’ command as well eventually, and it
> will have to read .xinitrc.)
>
> Thanks,
> Ludo’.

  reply	other threads:[~2014-12-20  3:12 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
2014-12-19 16:08   ` 宋文武
2014-12-19 21:24     ` Ludovic Courtès
2014-12-20  3:12       ` 宋文武 [this message]
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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87egrv3tgj.fsf@gmail.com \
    --to=iyzsong@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).