From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +PHOKI+4GWTXpQAASxT56A (envelope-from ) for ; Tue, 21 Mar 2023 15:00:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CH/EJ4+4GWSkQgAAG6o9tA (envelope-from ) for ; Tue, 21 Mar 2023 15:00:47 +0100 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 6B04928598 for ; Tue, 21 Mar 2023 15:00:47 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=cZR6r93P; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679407247; 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=xU9WQF3vfB4TbaCV1/KtK4p0W2IFsoyewPBaZRtO0dw=; b=UgwXVN87IhFdi0bJ96eYCXhmK2MDkdzH0OW6aXmW3CXd/0DuO9egLFQweXc3H5dLg2B2LH czP9QCLIGLRU+rSvtmFGsXi01MxtT/WrHExz+ucztcvbaVk5UEeRZLorcKymhVySKbeLHU WYYPvPbFb6omNVEYu9TKyAO4nJm++79p4QkTHxSBJXddvK++iY6aSUwa8xrxKS3VgNyMlU oghEhYh8GwsTTp9R33S3RFcPHafE6lOar7FhrIFFmCGdzqdQn2+o9Q0O6Bxwg3duQhHf/s srVrRj+ZRfgcGh8dIWOFEj01pATjAB97gXV7DGxMSAVpUlo/hjeU9DrHJTe6OQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=cZR6r93P; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679407247; a=rsa-sha256; cv=none; b=FoFpIUFe49ZVlM+9KEBE5+Ew5JL/bwYCus6qQxkuUMMXrVH4NRgclzESXwEYqxFRr/F0Yn 2rZ1UdfbFZoa7+y7JNsl2ZxesSYIupFT0qDXlyPxxoPOlGxVi8SICMXWy2hN/MpYPGppuZ 2Fcx+64C/ahqVA/s1hFzYxFML/CREB8ayN1q/p4KDX+YCkZwgm+PO56vNakF/ZqA07Q56/ gq+gUWDMkMGOSoaayRCIwBTWFb4KQrQkv2dzJ9HyYdSRZ03l8nnDD68tk6YKYi46tY1Iqc fI090ybPmROQbZpiIE5a1NE4NzYndPNnPMGl4x61K0tDR5Va6YXW/C/Y12aWPQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pecXG-000322-Ux; Tue, 21 Mar 2023 10:00:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pecXE-00030o-HU for help-guix@gnu.org; Tue, 21 Mar 2023 10:00:20 -0400 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pecXC-00012P-7t for help-guix@gnu.org; Tue, 21 Mar 2023 10:00:20 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id BF94D44531; Tue, 21 Mar 2023 15:00:14 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z9c4uKjGJJ_E; Tue, 21 Mar 2023 15:00:13 +0100 (CET) References: <875yaujrt1.fsf@envs.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1679407213; bh=b3D1YXg5t7wZAz1GwfhT9B7KCz1mufVtMHOknmIRTKs=; h=References:Date:From:To:Cc:Subject:In-reply-to; b=cZR6r93P+8LbW1e6OTKkntqdXo7/PI2lLKDf/hqRT2kiJYgnUNAEdQ3flLEHtUC5I shWeXhOqBuOQcRYfjIksDYyyZZA/XvbPtJwdA4k7aSG9rc4Y4UkoyzKT0RggNsWk5L kFrpmkmVk06bc9QKFdSLNFjMHLISmHSreE0eiD8aRsLrQ8RqksqwZA39SOlIPa6K23 Oiw2ZM7DG285IhE+sjKp7TJ4CV1tzyu7dIY6uET3RTk2kaHdOsbkYtLv9+hy6a2D8s w+RlyUf846N0p4kurpRfbwIEavcMcOf+tb5IW2fMIYPk6womQOFSUzgfpJGKxkE7PG ypfy/D9R6hoFg== Date: Tue, 21 Mar 2023 09:53:37 -0400 From: Gary Johnson To: Rodrigo Morales Cc: help-guix@gnu.org Subject: Re: display manager doesn't read ~/.xsession when it is a symlink In-reply-to: <875yaujrt1.fsf@envs.net> Message-ID: <87v8iuxl08.fsf@disroot.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=lambdatronic@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 6B04928598 X-Spam-Score: -6.46 X-Migadu-Spam-Score: -6.46 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: IGXU0DJGTo6D > Rodrigo Morales 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