From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ACm/IYbO/F6BTAAA0tVLHw (envelope-from ) for ; Wed, 01 Jul 2020 17:57:26 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ICCnHYbO/F74AQAA1q6Kng (envelope-from ) for ; Wed, 01 Jul 2020 17:57:26 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 97AED680666 for ; Wed, 1 Jul 2020 17:57:25 +0000 (UTC) Received: from localhost ([::1]:60836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqgx4-0003Ly-7x for larch@yhetil.org; Wed, 01 Jul 2020 13:55:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqgwq-0003Ku-6r for bug-guix@gnu.org; Wed, 01 Jul 2020 13:55:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42185) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqgwn-0007Ed-Tg for bug-guix@gnu.org; Wed, 01 Jul 2020 13:55:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jqgwn-0008Fq-Ru for bug-guix@gnu.org; Wed, 01 Jul 2020 13:55:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42157: guix-install.sh set XDG_DATA_DIRS before sourcing profile Resent-From: Fredrik Salomonsson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 01 Jul 2020 17:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42157 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 42157@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159362609031705 (code B ref -1); Wed, 01 Jul 2020 17:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Jul 2020 17:54:50 +0000 Received: from localhost ([127.0.0.1]:53731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqgwc-0008FJ-17 for submit@debbugs.gnu.org; Wed, 01 Jul 2020 13:54:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:58872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqgwZ-0008FB-1I for submit@debbugs.gnu.org; Wed, 01 Jul 2020 13:54:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqgwY-00032N-M4 for bug-guix@gnu.org; Wed, 01 Jul 2020 13:54:46 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:40885) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqgwW-0007DC-Ul for bug-guix@gnu.org; Wed, 01 Jul 2020 13:54:46 -0400 Received: by mail-pf1-x42d.google.com with SMTP id u5so11324447pfn.7 for ; Wed, 01 Jul 2020 10:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=HYMjxuvD5CGgGTlameWgkolA/COyP9Dkw18AnRTsnnw=; b=gppLYuhA6pjuQTAYEMcmtSE77Nsp7r7ofiaajaNE4Kse+Awj03ucyoJB74sup1t80D Jix2BMqLfRb9hIpbWYJ14N72JCKyCeYWPoQHVCtN6VeKsEnBDGgYz9c5Btn2Yt9zOq/X qe7il6CLNSYWdEAP4SVy0om8Q/gpFsl5XNonjAQjN2inWYoh0kG3nOLI3aqQtkYMb+2b zsYsCDc+XR4/yNECQGJkMXXGjEVUpfOnL11tuTgziM8Llou45r0UczLFoyBFHOtJp75c UQsSYAOUQp1zjMll0ValAVSF9rMNzGA5ZXyXjhJPVmN0dvXT3XKowN2AEdtLg7jCH2u2 KmMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=HYMjxuvD5CGgGTlameWgkolA/COyP9Dkw18AnRTsnnw=; b=GnRr4CAGiFAQC+bpNQpprwiHx3wnjeDjDgZXMP1m1jQrLQUArEpPNtvHIuVJdFBRHl 3xM6RdwlG81VVYFH91wDdwumZlg8tMnAnW5sNUEUhHgw/fUBYNHbRJ7OpFQ2ENn32wp/ 9GUeKicH5UZxoiSeLmZwLWp26S1uJ4oU2Axmv9TqseRYBzOX0kS6VMgdYAHaWbc1KGxt CVwL8DLtGRxmyyIzyBWi+qpEjEEr0GhQHp3NpezfU3YxoA3FXSS7IBJsL/S/hqUfcJ5z 5GbeUo1WMm6rwM8lqojvnxrv0ZgzUOLE0UM2cec4Zm5PVA63pBq4nSQfLTQ2SLG9oDlt lwkA== X-Gm-Message-State: AOAM5302vaPrEnp+fBk7xiaNGv7Z20FXMkijHrDoF4dLZBPV8JtsE0sC Gxx8fAeZ8lYvHrH9n2iH+1CywftL X-Google-Smtp-Source: ABdhPJxMZJW9v4YC04cX3+K0nZvK+fp3Zs5Tcu10WlKDQaQvcN2hG8mEOeB2QlYw/liUuI4ptxtP4g== X-Received: by 2002:a62:504:: with SMTP id 4mr25619369pff.67.1593626081980; Wed, 01 Jul 2020 10:54:41 -0700 (PDT) Received: from localhost (node-1w7jr9qqzayzqnit5wh171cm2.ipv6.telus.net. [2001:569:7a05:3a00::111a]) by smtp.gmail.com with ESMTPSA id j2sm5714839pjf.4.2020.07.01.10.54.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 10:54:41 -0700 (PDT) From: Fredrik Salomonsson Date: Wed, 01 Jul 2020 10:54:40 -0700 Message-ID: <87sgebqfxb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=plattfot@gmail.com; helo=mail-pf1-x42d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx2.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=gppLYuhA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: 2208Z2FSjs1/ Hi, I encountered an issue when installing guix using the installer script on Arch Linux. I'm using a quite simple setup, with only SDDM and sway, so no XDG environment variables are set. Noticed after I've installed guix, things started braking. I tracked it down to the `XDG_DATA_DIRS` environment variable only contained paths to the guix store. The guix.sh script does set `XDG_DATA_DIRS` to /usr/local/share/:/usr/share/ if it's not defined. But it does that after it has sourced the `$GUIX_PROFILE/etc/profile`. Which for me adds some paths to the `XDG_DATA_DIRS` and therefore the default paths are not added. I worked around the issue by adding a script to the /etc/profile.d that sets the `XDG_DATA_DIRS` to `/usr/local/share/:/usr/share/` and made sure it got loaded before the guix.sh script (named it 00-xdg.sh). But might be good to make sure `XDG_DATA_DIRS` is set to the default paths before it sources the profile. To avoid this issue for other users. Thanks -- s/Fred[re]+i[ck]+/Fredrik/g