From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4zMaKMQ2a2HFCAEAgWs5BA (envelope-from ) for ; Sat, 16 Oct 2021 22:32:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CIE1I8Q2a2EzLgAAbx9fmQ (envelope-from ) for ; Sat, 16 Oct 2021 20:32:04 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E9B91843B for ; Sat, 16 Oct 2021 22:32:03 +0200 (CEST) Received: from localhost ([::1]:33064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbqLa-0002yU-Sb for larch@yhetil.org; Sat, 16 Oct 2021 16:32:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbqKH-0001wg-Oz for help-guix@gnu.org; Sat, 16 Oct 2021 16:30:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbqKF-0004Sz-1R for help-guix@gnu.org; Sat, 16 Oct 2021 16:30:41 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id DE17F240026 for ; Sat, 16 Oct 2021 22:30:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1634416234; bh=t3xIyM1Cjy/eD0/tR9Iep6jFNJHnpF7CESLTKcDsSuM=; h=From:To:Cc:Subject:Date:From; b=IgJsk2whyrxaY0bvuU9sKQMNNx0RPnmVfLEgJL+0710MsQHq44nLU/fjXIPDWXfsn Wr5DkhFliIDv6U8mKDZV6VRh+cMAQVBfK5n8ptRKSfP8Xwm7MI8F4LaPpFufxlVGe2 w2RRRTYCqPMepGXeMSbBTlKSd2gFVppMAjBmduCUNtbjYhv/hUFWu1civaiWcc5SLh Sby95OJLeVqtxqU2Cx21dWQChskgW/iKmPpbJlTQU61gtJlg48yTNw95+nehGOLl4d lmf2tlAeSet+tvaTjAeQZBz1VQmbMf7h3GaOephIuJ1aQ66DsrWrt2PE0RjwqWC45h NuYXH9BMATKWA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HWvsP4PrTz6tmH; Sat, 16 Oct 2021 22:30:33 +0200 (CEST) From: Fredrik Salomonsson To: Edouard Klein Subject: Re: Question about scripts in guix-home In-Reply-To: <874k9hz2q3.fsf@rdklein.fr> References: <87r1clfxcp.fsf@posteo.net> <874k9hz2q3.fsf@rdklein.fr> Date: Sat, 16 Oct 2021 20:30:31 +0000 Message-ID: <87zgr890go.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=plattfot@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634416324; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bCazkFcXwQeTzLYm96SWpZaL1fXo/1b8dC6RynWXLOQ=; b=qrWzSR6SDQ1wL9WRXi5SFLFcbOQID8XI1DVNF9JCrwsGcSe6IAiYPOGXXR8PQe0JpXEnMV ZxOxarQWs0HyIFcZGJIHfHvabszhKhI4joX3qImcLgdavIotK76LzauTUG7EqvOvJaMZXO 2ggTLdcRDeDdIEPtyuHG7NSgIJaDmOI/3cN5duahrwLVZ4EQNNX4p8mwUgHCO9xaCax8Yd x234H9yq7Nq5WoLtAKwy8YmW7ObOyZdfc1BCVPdVT2Yd4cfxdGby+PKqs+Wx02TYAJlMB1 YHzXCvC7HW3vzlxXr0aCDUYtgKiwr3p0+sDmG9ZFLi6c3QM14kp1Ca9ECts2Tw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634416324; a=rsa-sha256; cv=none; b=IQf8m13QJEKbGDZ34o9Jqsq1Xii+/jkUewZlfNdsmvxgi2WaPIx3fsLQTnKZLcZ1JtR543 ml8fCclaY1abLwhSW7MlR4juJxNt330+XPEH3DJQrSJ2p1aMgOPCB/sVST+hmaWLRwAbTo 5lZOfGYJn3+9iSUG/nVC48wPbDQ6VjsPr0WjVPXCVeyKMkBViE9Mc2kRDmmKiAgLCbFlmt bj6ZjsRlnvEkMTFVEQ9c7eMevDSivaS8KrVr0G0qStUVGBpfCZLJTcn7HmOPyM93Sc3qe4 BOTc/6gZZAhc94yE88W5xwjxvXiPT+SPb6y+LFH3sSwgAgTLBKrjtZcGs+PqDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IgJsk2wh; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IgJsk2wh; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: E9B91843B X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: oBdQPdBEXmli 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 ? > > 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