[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] services: slim: Allow non-absolute path to be used as se
From: |
宋文武 |
Subject: |
Re: [PATCH 1/2] services: slim: Allow non-absolute path to be used as session command. |
Date: |
Fri, 13 Mar 2015 22:59:49 +0800 |
User-agent: |
Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-unknown-linux-gnu) |
Ludovic Courtès <address@hidden> writes:
> 宋文武 <address@hidden> skribis:
>
>> * gnu/services/xorg.scm (xinitrc)[builder]: Don't check the existence
>> of COMMAND. Only run ~/.xsession when it exists.
>
> [...]
>
>> + (let* ((home (getenv "HOME"))
>> + (xsession-file (string-append home "/.xsession"))
>> + (session (match (command-line)
>> + ((_ x) x)
>> + (_ #$fallback-session))))
>
> Could you align the right-hand sides of the ‘let*’?
>
>> + (if (file-exists? xsession-file)
>> + ;; Run ~/.xsession when it exists.
>> + (exec-from-login-shell xsession-file)
>
> This will fail if ~/.xsession is not executable. It could use
> ‘executable-file?’ from (guix build utils), but OTOH it may be better to
> just fail in this case since it’s most likely a user error.
I'm OK to fail here.
Pushed, thanks for review!
>
> Thoughts?
>
> Thanks,
> Ludo’.