From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 MEq7JNHLFGQjDgEASxT56A (envelope-from ) for ; Fri, 17 Mar 2023 21:21:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kDlTJNHLFGSKGAEAauVa8A (envelope-from ) for ; Fri, 17 Mar 2023 21:21:37 +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 2991022A6E for ; Fri, 17 Mar 2023 21:21:37 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=RXgP0dsN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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=1679084497; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=9STSLtTVa5A95tYt5liqFtdbpRPlLKo/M1r7yOMUGaI=; b=ihD6XjRVS9XktyRpshkhOUQSTDbtdAeNHWyVkUjvtZW+UFSJ/C49UVDb8LleWMMLIfncd7 XwpBBxKMmJyq/Z6+04OpH8tH2SLhoOIq7ooHCVLyhCQAqoLLAtk6lszFsvOL2l3X+w3IAi gB2zXwBvkS1sZMCDYseEdm5ntPPrOUYR4CKMF64SuQc1y7mOMS6znAp5ru3jVQvzffUvHC NxWy8VeEOI3livCKvW7emwnioGYM5Q8vpe4YzrCBw8+5fcy7UpxLw+n2CLCtWkSSRuYCQ6 f8QCXLwbX5DmUt4JxE6Uh8fzZgmHHGPPoF836L3vAdKD6oSQ+uVBb7cavMXfrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=RXgP0dsN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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=1679084497; a=rsa-sha256; cv=none; b=p5eBnmDaYG2vUH3xyeS3N3x5Vsp0yZMDWlRB2UTpgxJ6ADjkC3ZmQcMslnRRbR//4rzRYO bdXU0JDsqHI9PygLNRfPn+s1rbdfHekm4P2UdlEMEJXqcWW2KtLNgNfW5HPVYccEszgref 8oxNJKMEiPhBFy2XVYb/e167Z0/Y82qMFfdaJZwgm2pR0YppDdmiYVO9VR737GsJlWicTn JJ8iz++ikMRz60QOS9Nc4c2zdzr+9wlTR22Zzqw96JzNxoXoxDZyw8TFO1e0mkKbTOuOIG gXqDjbl+JM61MxLKBcIgpGRgqbM9xqwd4pup3Ll3SxqIrz5U2fe8zzJEnB875g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdGZY-0001jO-Sh; Fri, 17 Mar 2023 16:21:08 -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 1pdGZX-0001iK-E0 for help-guix@gnu.org; Fri, 17 Mar 2023 16:21:07 -0400 Received: from mail-vs1-xe35.google.com ([2607:f8b0:4864:20::e35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pdGZU-0006Ki-Uh for help-guix@gnu.org; Fri, 17 Mar 2023 16:21:07 -0400 Received: by mail-vs1-xe35.google.com with SMTP id c1so2804856vsk.2 for ; Fri, 17 Mar 2023 13:21:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679084462; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=3C8x0hqC0W53iRuOBPhY49kW7xLaWLIlmnHryCuB3KQ=; b=RXgP0dsNeh+3Zg2ZpaLblO6awK9LoCi3lCjER3BUuhBLgZI4jTHlEV8457c0rYO4/I deQAehxZHD36R3BgP/uBolL1tMmWEIkPbsHPb6Z5PmScTuMW9CuVEUfxFo1gOYLDTDR8 acUr1Pi9MOtGausLfNSZG7OeJ7lPeQmW7sf5MuceNKchikMGZMYNuxdnjX+kvdYJZ3hO +HaIehwDI4WXUnlzadfIxuWD5oJM6DOQa02CmceVICiRniddSgjNzWNn6pIwbgElL3l3 UEIpkC7TVS0pUxSesoeZqS+P2lD9MCC3lFKuAaD42bIgisVtz09KlUP/CjDm2eMWoD0i 6srQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679084462; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3C8x0hqC0W53iRuOBPhY49kW7xLaWLIlmnHryCuB3KQ=; b=eJGnPzTm8gsOOD7dv79NLBZ8GBuaRi/1VnyPXvd0+OHTkLLDJit32cGXRT8VNo3D+F rlH9wQ1q9N2d/zY9wmL8JC93wozRyAeOjPte17O4I5zjJ06q5oMeTc7jN2CVt1lFz4oO TL8wubN6M5X6+iFVouu7mwyiAdY//qVqyhPJsE/80EGOk9m/UOQzVp2LMp/jMjpAhY1j i9a2CCcM/4BJUjJsOIP8dZD55uJtY905njabjZYA52Ma55yJMio6wU1QtmYmF//8U9hc ThwYVe12lOfskmW79e53SWlGdsX2kqlq8tR5KhsGBMTSHhc6XyH/5aG6X3NzFDrkzeh2 sEsQ== X-Gm-Message-State: AO0yUKUXV15btgSCtEHD+oYPXKDG0rkFU8a+3ErqbmVgrcaZkn2uRclf V4mzTXwMWcadUqxRM21gw+QpostSWmlDy3prlYjmP58Fg5xOiQ== X-Google-Smtp-Source: AK7set94GjSrA7lhxqCWJEuAIjcWRLvv5f/PAJDAa8cngVVb3ukvXelKOFBiqf1HBYQ++VJpvDgAMCA3tC6BgoXo8CQ= X-Received: by 2002:a67:d715:0:b0:425:d39f:3882 with SMTP id p21-20020a67d715000000b00425d39f3882mr673492vsj.3.1679084462066; Fri, 17 Mar 2023 13:21:02 -0700 (PDT) MIME-Version: 1.0 From: Rodrigo Morales Date: Fri, 17 Mar 2023 15:18:29 -0500 Message-ID: Subject: display manager doesn't read ~/.xsession when it is a symlink To: help-guix@gnu.org Received-SPF: pass client-ip=2607:f8b0:4864:20::e35; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-vs1-xe35.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: 2991022A6E X-Spam-Score: -2.45 X-Migadu-Spam-Score: -2.45 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: b4w9xpwfzTpA Table of Contents _________________ 1. The context 2. The problem 3. The question 4. Appendix 1 The context =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I'm using the [display manager]/[login manager] that is bundled with GUIX by default. Consider the following `~/.xsession' file. ,---- | cat ~/.xsession `---- ,---- | # Map Caps Lock to Ctrl | setxkbmap -option 'ctrl:nocaps' -layout us | # Start Emacs using the exwm script | exwm `---- I've noticed that when `~/.xsession' doesn't have execute permissions (see code block below) and when I try to log in to my account through the display manager, the display manager is shown again (i.e. the window manager is not started). ,---- | ls -l ~/.xsession `---- ,---- | -rw-r--r-- 1 rdrg users 108 Mar 17 14:34 /home/rdrg/.xsession `---- When the file has execute permissions (see code block below) and when I log in to my account through the display manager, the window manager is started. So, I conclude that `~/.xsession' requires execute permissions. ,---- | chmod +x ~/.xsession | ls -l ~/.xsession `---- ,---- | -rwxr-xr-x 1 rdrg users 108 Mar 17 14:34 /home/rdrg/.xsession `---- 2 The problem =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I have created `~/my/guix-config/xdg/xsession' in `~/my/guix-config/', which is the directory that contains a git repo with all my configurations (see file structure below). ,---- | find ~/my/guix-config ! -path '*/.git/*' | tree -a --fromfile `---- ,---- | . | =E2=94=94=E2=94=80=E2=94=80 home | =E2=94=94=E2=94=80=E2=94=80 rdrg | =E2=94=94=E2=94=80=E2=94=80 my | =E2=94=94=E2=94=80=E2=94=80 guix-config | =E2=94=9C=E2=94=80=E2=94=80 fontconfig | =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 fonts.conf | =E2=94=9C=E2=94=80=E2=94=80 .git | =E2=94=9C=E2=94=80=E2=94=80 home-configuration.scm | =E2=94=9C=E2=94=80=E2=94=80 mpv | =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 input.conf | =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 mpv.conf | =E2=94=9C=E2=94=80=E2=94=80 rime | =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 default.custom.= yaml | =E2=94=9C=E2=94=80=E2=94=80 tmux | =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 tmux.conf | =E2=94=9C=E2=94=80=E2=94=80 xdg | =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 defaults.list | =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 emacsclient-ope= n-file.desktop | =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 inkscape.deskto= p | =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 mpv.desktop | =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 okular.desktop | =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 xsession | =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 zathura.desktop | =E2=94=94=E2=94=80=E2=94=80 zathura | =E2=94=94=E2=94=80=E2=94=80 zathurarc | | 11 directories, 15 files `---- The file `~/my/guix-config/xdg/xsession' has the same content as the file shown in the first section and it has execute permissions. ,---- | cat ~/my/guix-config/xdg/xsession `---- ,---- | # Map Caps Lock to Ctrl | setxkbmap -option 'ctrl:nocaps' -layout us | # Start Emacs using the exwm script | exwm `---- ,---- | ls -l ~/my/guix-config/xdg/xsession `---- ,---- | -rwxr-xr-x 1 rdrg users 108 Mar 17 15:07 /home/rdrg/my/guix-config/xdg/xsession `---- 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 | | I use the following command to create symbolic links from =3D$HOME=3D t= o my git repo. | | #+BEGIN_SRC sh | guix home reconfigure ~/my/guix-config/home-configuration.scm `---- After completion of `guix home reconfigure', the file `~/.xsession' is a symbolic link. ,---- | ls -l ~/.xsession `---- ,---- | lrwxrwxrwx 1 rdrg users 52 Mar 17 14:47 /home/rdrg/.xsession -> /gnu/store/hs5d7dkq6ywzd062yg4dcqfx5v0wa7dj-xsession `---- The problem is that when I try to log in through the display manager, I'm redirected again to the display manager (the same behavior described above when `~/.xsession' is a regular file and doesn't have execute permissions). 3 The question =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Is it possible for the display manager correctly execute `~/.xsession' even when it is a symbolic link? I need to do this because I use `guix home reconfigure ~/my/guix-config/home-configuration.scm' to configure my `$HOME', so `~/.xsession' is a symbolic link. 4 Appendix =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ,---- | cat ~/my/guix-config/home-configuration.scm `---- ,---- | ;; This "home-environment" file can be passed to 'guix home reconfigure= ' | ;; to reproduce the content of your profile. This is "symbolic": it only | ;; specifies package names. To reproduce the exact same profile, you also | ;; need to capture the channels being used, as returned by "guix describe". | ;; See the "Replicating Guix" section in the manual. | | (use-modules (gnu home) | (gnu packages) | (gnu services) | (guix gexp) | (gnu home services) | (gnu home services shells) | (gnu home services ssh) | ;; zathura | ;; zathura-pdf-mupdf | ;; xournalpp | (gnu packages pdf) | ;; okular | (gnu packages kde) | ;; inkscape | (gnu packages inkscape) | ;; git | (gnu packages version-control) | ;; libreoffice | (gnu packages libreoffice) | ;; mpv | (gnu packages video) | ;; audacity | (gnu packages audio) | ;; ripgrep | (gnu packages rust-apps) | ;; tmux | (gnu packages tmux) | ;; xdg-utils | (gnu packages freedesktop) | ;; font-misc-misc | (gnu packages xorg) | ;; rsync | (gnu packages rsync) | ;; tree | (gnu packages admin) | ;; emacs-rime | (gnu packages emacs-xyz) | ;; xcape | (gnu packages xdisorg)) | | (home-environment | ;; Below is the list of packages that will show up in your | ;; Home profile, under ~/.guix-home/profile. | (packages | (list | git | okular | tree | xdg-utils | font-misc-misc | zathura | zathura-pdf-mupdf | tmux | inkscape | xournalpp | libreoffice | mpv | audacity | ;; Transfer files between systems. Both the host and the | ;; destination must have rsync installed in order transfer files | ;; mutually. | rsync | ripgrep | setxkbmap | xcape | emacs-rime)) | ;; Below is the list of Home services. To search for available | ;; services, run 'guix home search KEYWORD' in a terminal. | (services | (list | (simple-service | 'some-useful-env-vars-service | home-environment-variables-service-type | '(("EDITOR" . "emacsclient"))) | (service | home-openssh-service-type | (home-openssh-configuration | (hosts | (list | (openssh-host | (name "desktop") | (host-name "192.168.1.35") | (user "beep1560") | (port 22)))))) | (service | home-bash-service-type | (home-bash-configuration | (aliases | '(("grep" . "grep --color=3Dauto") | ("ll" . "ls -l") | ("ls" . "ls -p --color=3Dauto") | ("d" . "cd ~/Downloads"))))) | (service | home-files-service-type | `((".xsession" | ,(local-file "xdg/xsession")) | (".local/share/applications/defaults.list" | ,(local-file "xdg/defaults.list")) | (".local/share/applications/emacsclient-open-file.desktop" | ,(local-file "xdg/emacsclient-open-file.desktop")) | (".local/share/applications/inkscape.desktop" | ,(local-file "xdg/inkscape.desktop")) | (".local/share/applications/okular.desktop" | ,(local-file "xdg/okular.desktop")) | (".local/share/applications/zathura.desktop" | ,(local-file "xdg/zathura.desktop")) | (".local/share/applications/mpv.desktop" | ,(local-file "xdg/mpv.desktop")))) | (service | home-xdg-configuration-files-service-type | `(("tmux/tmux.conf" | ,(local-file "tmux/tmux.conf")) | ("ibus/rime/default.custom.yaml" | ,(local-file "rime/default.custom.yaml")) | ("mpv/mpv.conf" | ,(local-file "mpv/mpv.conf")) | ("mpv/input.conf" | ,(local-file "mpv/input.conf")) | ("zathura/zathurarc" | ,(local-file "zathura/zathurarc"))))))) `----