unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Fredrik Salomonsson <plattfot@posteo.net>
To: Edouard Klein <edou@rdklein.fr>
Cc: help-guix@gnu.org
Subject: Re: Question about scripts in guix-home
Date: Sat, 16 Oct 2021 20:30:31 +0000	[thread overview]
Message-ID: <87zgr890go.fsf@posteo.net> (raw)
In-Reply-To: <874k9hz2q3.fsf@rdklein.fr>

Edouard Klein <edou@rdklein.fr> writes:

> Hi,
>
> Sorry I can't be more precise due to lack of time, but maybe invoking
> chmod on the .sh files in a gexp would work ?
>
> https://www.gnu.org/software/guile/manual/html_node/File-System.html
>
> #+begin_quote
>
> Scheme Procedure: chmod object mode
> C Function: scm_chmod (object, mode)
>
>     Changes the permissions of the file referred to by object. object
>     can be a string containing a file name or a port or integer file
>     descriptor which is open on a file (in which case fchmod is used as
>     the underlying system call). mode specifies the new permissions as a
>     decimal number, e.g., (chmod "foo" #o755). The return value is
>     unspecified.
>
> #+end_quote.
>

Yeah, not sure how I should invove it though. I tried doing 

(chmod #$(local-file "files/waybar/modules-mic.sh") #o555)

In different gexp. But just getting operation not permitted:

#+begin_src text
  In different gexp but just getting:

   Backtrace:
             2 (primitive-load "/gnu/store/w399i13mijh528x6ymlijh0k5fz?")
  In ice-9/eval.scm:
      619:8  1 (_ #f)
  In unknown file:
             0 (chmod "/gnu/store/kbarnh2z2zaljwy6bwfhni2h3jjihzyj-mo?" ?)

  ERROR: In procedure chmod:
  In procedure chmod: Operation not permitted
#+end_src

-- 
s/Fred[re]+i[ck]+/Fredrik/g


  reply	other threads:[~2021-10-16 20:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-16  3:43 Question about scripts in guix-home Fredrik Salomonsson
2021-10-16 10:22 ` Edouard Klein
2021-10-16 20:30   ` Fredrik Salomonsson [this message]
2021-10-16 12:40 ` Oleg Pykhalov
2021-10-16 22:14   ` Fredrik Salomonsson
2021-10-17 10:33     ` Oleg Pykhalov
2021-10-17 18:45       ` Fredrik Salomonsson
2021-10-21  9:58         ` Oleg Pykhalov

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=87zgr890go.fsf@posteo.net \
    --to=plattfot@posteo.net \
    --cc=edou@rdklein.fr \
    --cc=help-guix@gnu.org \
    /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).