[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: display manager doesn't read ~/.xsession when it is a symlink
From: |
Gary Johnson |
Subject: |
Re: display manager doesn't read ~/.xsession when it is a symlink |
Date: |
Tue, 21 Mar 2023 09:53:37 -0400 |
> Rodrigo Morales <moralesrodrigo1100@gmail.com> writes:
>
>> [...]
>> I've symlinked `~/my/guix-config/xdg/xsession' to `~/.xsession' by
>> using the following instruction in
>> `~/my/guix-config/home-configuration.scm' (see appendix for my
>> complete configuration)
>>
>> ,----
>> | (... some omitted lines ...)
>> | (service
>> | home-files-service-type
>> | `((".xsession"
>> | ,(local-file "xdg/xsession"))
>> | (... some omitted lines ...)
>> | #+END_SRC scheme
>
> Hello, you can use (local-file "xdg/xsession" recursive? #t) to make the
> store file kept the permission bits, which would lead to a executable
> ~/.xsession.
Exactly right. In order to preserve the executable bit on your xsession
file when running it through `guix home`, you have to set the
#:recursive? option to #t in `local-file`. Here's an update to your
example service in `~/my/guix-config/home-configuration.scm`:
(... some omitted lines ...)
(simple-service 'rodrigo-dotfiles
(home-files-service-type
`((".xsession" ,(local-file "xdg/xsession" #:recursive? #t)))))
(... some omitted lines ...)
Happy hacking!
Gary
--
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
Why is HTML email a security nightmare? See https://useplaintext.email/
Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html