guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] services: slim: Allow non-absolute path to be used as se


From: Ludovic Courtès
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

宋文武 <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]