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 EDS9MJQVxWGZHwEAgWs5BA (envelope-from ) for ; Fri, 24 Dec 2021 01:34:28 +0100 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 qBw8LJQVxWG2KwAAbx9fmQ (envelope-from ) for ; Fri, 24 Dec 2021 00:34:28 +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 5386934E56 for ; Fri, 24 Dec 2021 01:34:28 +0100 (CET) Received: from localhost ([::1]:50248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0YXS-0008Un-V2 for larch@yhetil.org; Thu, 23 Dec 2021 19:34:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0YXJ-0008UQ-FI for help-guix@gnu.org; Thu, 23 Dec 2021 19:34:17 -0500 Received: from mx.kolabnow.com ([212.103.80.154]:30772) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0YX8-00045m-Sm for help-guix@gnu.org; Thu, 23 Dec 2021 19:34:16 -0500 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 8FDAE12C5; Fri, 24 Dec 2021 01:34:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1640306041; x=1642120442; bh=nlpVSx6yLfSliBMvmk+2itV9P1t3Uy9nb2W A3xDNCrk=; b=WpiEqCASe0WpyI9yTNxNRdaLWi27AaRSkq3Rx5Kis/gHAUg7/oR ivkiX6SGouAPBMALDbF9lIVRvnnvn9CIBJGyZ/JOxHnZo9OcMYvLoAhvmJK7ZkQd DH3OopmFMBGTbipq+EHazdOlKHFGvAStjmrS0Dd7c60NG6HNawoZBfQXZtsoM6Y+ 4aInm0b0RJQZANplo9bLfSqtUR6R9PIcoq6WA6ZQV1NC8R44ByT4MmkVZc9iBquQ 3G+ktGvK7GQpzpMZVCWUsiLTKmYZXWpANCbd01Z1SaW0NIOj6nsnECg2QBXPwoeQ vCopWYsQ5mi9Yrle4oefxVW8rFAw7VmbW5FfjPKtQ7uF4SzZYrjzdkoLJs8NyRTk fmHRJn/nRYUs40Kz2QGiupSV/7IDMscRsvPv/MmWvj3LLRt1eFI4PHqrgPhin5FZ hKx1sctTqP1VcJ6y2gF10ilIEQNfcRWRTxO7iGXcP5eoSLPz/2eeyiGq2zXJmrI/ hXuDM2cAooVtRLsXxlcRc5iQlnzJHiaIzvLDLE8nzHtigsAk/WF+Q0znTjkwhjeP zjlOQDCmDLJ+j7O9AGZ7ciW95i4PPDRHGxdU8qcGuhcWwgA2C6xUcVTNcd8vU2xa SNDlIk/zXbdc37bp/HcD8IPb5RgWbQOgRQUtQC+40x2ZFCbrTvpcb/qE= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nby_CbnJ49aD; Fri, 24 Dec 2021 01:34:01 +0100 (CET) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id 4C000126E; Fri, 24 Dec 2021 01:34:00 +0100 (CET) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx001.mykolab.com (Postfix) with ESMTPS id A050A2A14; Fri, 24 Dec 2021 01:33:59 +0100 (CET) From: Thiago Jung Bauermann To: help-guix@gnu.org Cc: David Lecompte Subject: Re: Initialization of environment variables for guix on foreign distro Date: Thu, 23 Dec 2021 21:33:54 -0300 Message-ID: <3176617.8jMxP2QRTj@popigai> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=212.103.80.154; envelope-from=bauermann@kolabnow.com; helo=mx.kolabnow.com 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_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 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: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640306068; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=nlpVSx6yLfSliBMvmk+2itV9P1t3Uy9nb2WA3xDNCrk=; b=DpQxZPrC0i7B5PNEXzEkt8rVYWSIwYhAojlbYL2w6IxdY/Bu7uSAqUHGlkh3eBdj/OvGut WEW0zGPRmjnttANCvzhk4sgFXkle2eIz5Sv3XIxa/XmZTl8G8ambbVVo+bywhxkRL1rlra gsxlZC7vwrhs+EtxIZvvkRs5YdQU2eNWaoQeElwlk+2rvdff77PeF/vsnzkAJ0bVGN1Q/i fEZXF1X5C00uke+aWUtvvAr8UsmRI7Mvz6xL3vZ/ZVEnUSVV4K8bM3ZuGKLqQibMfI1tLL Gf5qicv9PGNYCcTLbQ3hG54IT9IH/UKJY6wCeXmsB/VMyn/jW0rMcU+2xvHwJw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640306068; a=rsa-sha256; cv=none; b=r/TLvqSqDSfRd8etCmg8ejrH+B2RIB1Svl3kEIGbZaosixD6vOCXDT5ZhDQrnt5XYDUwgB 3PPAnjFmpJstv8l3prZBeYd3Cfg4OMg8LQ00uqL6lk9hGYMSnZiEEJgPBnhktNTW9GZGWn 3sBOa6SuIky7wJiMJKczDlHRaE/LlqOuUjl24qkEJE9rWFaZXNizrJclGX2O7DYsBCrB/R /gsBk43nsGP+cXLQ/r6vaJ+RGegoJDyFPeitOEc6QrhWwS7QlmEBVGS34OsZSq85Z/FiX0 tdZ4Zgyetptz69LrUINbzPDtzjLWW+p4rcyYi2bPuJFfk9PokGEbH1EepQGxzA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=WpiEqCAS; dmarc=pass (policy=quarantine) header.from=kolabnow.com; 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" X-Migadu-Spam-Score: -5.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=WpiEqCAS; dmarc=pass (policy=quarantine) header.from=kolabnow.com; 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" X-Migadu-Queue-Id: 5386934E56 X-Spam-Score: -5.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: KptgZ/XB9yt9 Hello David, David Lecompte writes: > On Trisquel with mate on my laptop, when opening a mate terminal (the > command is just "mate-terminal", no option), all the suitable > environment variables for guix are set. > > On Debian with mate on my desktop (I had problems with Trisquel that I > could not solve for one year so I am using Debian), when opening a mate > terminal, the suitable variables for guix are not set. I had a similar issue recently on my Ubuntu laptop, when I switched the display manager from SDDM to GDM. From what I gather, the latter launches the desktop session without using a shell so at no point the shell initialization files are evaluated and thus the environment isn=E2=80= =99t set=20 up as usual. I use KDE Plasma, and it has a mechanism to evaluate shell scripts to set the environment, so in my case to fix the problem what I had to do was: $ ln -s /etc/profile ~/.config/plasma-workspace/env/profile.sh I searched a bit, but unfortunately I couldn=E2=80=99t find an equivalent solution for MATE. I suppose one alternative would be to switch from GDM to SDDM. :-) > Does guix configure another file to set environment variables properly > or is /etc/profile.d/guix.sh the only one? Is it supposed to be > sufficient to source it via /etc/profile? Yes, that should be enough. > If sourcing /etc/profile is supposed to address all cases, what is the > recommended way to have it sourced? (on the laptop, I searched all .* > files in my home directory, none of them is sourcing /etc/profile). > That last question is not guix-specific but any advice is still > welcome. bash automatically reads /etc/profile when invoked as a login shell. There are more details here: https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html =2D-=20 Thanks, Thiago