From: Gary Johnson <lambdatronic@disroot.org>
To: Rodrigo Morales <moralesrodrigo1100@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: display manager doesn't read ~/.xsession when it is a symlink
Date: Tue, 21 Mar 2023 09:53:37 -0400 [thread overview]
Message-ID: <87v8iuxl08.fsf@disroot.org> (raw)
In-Reply-To: <875yaujrt1.fsf@envs.net>
> 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
prev parent reply other threads:[~2023-03-21 14:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-17 20:18 display manager doesn't read ~/.xsession when it is a symlink Rodrigo Morales
2023-03-21 10:56 ` 宋文武
2023-03-21 13:53 ` Gary Johnson [this message]
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=87v8iuxl08.fsf@disroot.org \
--to=lambdatronic@disroot.org \
--cc=help-guix@gnu.org \
--cc=moralesrodrigo1100@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.
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).