[Top][All Lists]

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

Re: Question about scripts in guix-home

From: Fredrik Salomonsson
Subject: Re: Question about scripts in guix-home
Date: Sat, 16 Oct 2021 20:30:31 +0000

Edouard Klein <> 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 ?
> #+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/") #o555)

In different gexp. But just getting operation not permitted:

#+begin_src text
  In different gexp but just getting:

             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


reply via email to

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