From unknown Sun Jun 15 08:48:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42157 <42157@debbugs.gnu.org> To: bug#42157 <42157@debbugs.gnu.org> Subject: Status: guix-install.sh set XDG_DATA_DIRS before sourcing profile Reply-To: bug#42157 <42157@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:48:12 +0000 retitle 42157 guix-install.sh set XDG_DATA_DIRS before sourcing profile reassign 42157 guix submitter 42157 Fredrik Salomonsson severity 42157 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 13:54:50 2020 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 To: bug-guix@gnu.org Subject: guix-install.sh set XDG_DATA_DIRS before sourcing profile 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-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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