all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: 宋文武 <iyzsong@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 2/2] services: slim: Allow non-absolute path to be used as session command.
Date: Tue, 10 Mar 2015 09:48:06 +0100	[thread overview]
Message-ID: <87r3sxp7ax.fsf@gnu.org> (raw)
In-Reply-To: <1425824080-350-2-git-send-email-iyzsong@gmail.com> ("宋文武"'s message of "Sun, 8 Mar 2015 22:14:40 +0800")

宋文武 <iyzsong@gmail.com> skribis:

> * gnu/services/xorg.scm (xinitrc)[builder]: Don't check the existence
>   of COMMAND.  Only run ~/.xsession when it exists.

[...]

> +          (when (file-exists? "~/.xsession")
> +            (exec-from-login-shell (string-append home "/.xsession")))

That doesn’t work because ~ won’t get expanded.

What about this:

  (catch 'system-error
    (lambda ()
      ;; First, try to run ~/.xsession.
      (exec-from-login-shell (string-append home "/.xsession")))
    (lambda args
      ;; Then try to start the specified session.
      (exec-from-login-shell session)))

Thanks,
Ludo’.

  reply	other threads:[~2015-03-10  8:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-08 14:14 [PATCH 1/2] services: slim: Use /run/current-system/profile/share/xsessions as sessiondir 宋文武
2015-03-08 14:14 ` [PATCH 2/2] services: slim: Allow non-absolute path to be used as session command 宋文武
2015-03-10  8:48   ` Ludovic Courtès [this message]
2015-03-10  8:46 ` [PATCH 1/2] services: slim: Use /run/current-system/profile/share/xsessions as sessiondir Ludovic Courtès
2015-03-10  9:20   ` 宋文武
2015-03-12 20:11     ` 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=87r3sxp7ax.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.