From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4DE5E1581D8 for ; Mon, 18 Nov 2024 19:25:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04C17E09ED; Mon, 18 Nov 2024 19:25:38 +0000 (UTC) Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4C91DE085A for ; Mon, 18 Nov 2024 19:25:37 +0000 (UTC) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-720b2d8bb8dso107357b3a.1 for ; Mon, 18 Nov 2024 11:25:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731957910; x=1732562710; darn=lists.gentoo.org; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=NeroUcSs/Rst4PemW72Pld9wlFrQp8KkSJn1ymxnNrA=; b=alezkvdutG3ZL+qp1vDskCZ3cVzMWCQhCmZmZL+YKbn6N81rQBgQzMRgRRXDRrMc+Y MkfMOK9+Bbf8jwXxUld7MgMsTxlMGUCkAar5DMcOvA76JA8g1HBnNiMZ2TyHy50koyj2 qGOZayyZ5AC/SWnieaq/wiNs62AeeN2/QfFdtsk93XkhhQq+oihAMy5NAAmTGKZdZRtm lfEXWv3HK991SOXff6QxyUVQEqSYv6G38Xhn3A/qu/Pe3uJLK25NBqT/nWLBLmOvaaT+ 8PrcLIq+caN3I/OhOiv4GqiVnB895r+D5SFX6a4PERmERbjMnpBx/nGWsiJKf8c59e08 jLVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731957910; x=1732562710; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NeroUcSs/Rst4PemW72Pld9wlFrQp8KkSJn1ymxnNrA=; b=mYohxT4EpSxYatc8eS9ZOnKkU2aU1VmtSoyHOEC4QD+zemCrk68LdtGtgrM4fJrvSu 1PWU7auErCNmzFqGlrv0QAedDOwgkTBpOMegKH1iG45CF5ehr4kTLhORCTavPYCL9bAl ICol5qu4IW87f9ZuO5ethOo1Bj2I6STJaK/iQdoGIdlupn7iUTxPMF2nd3uGDhWxZ7Wn eDr3zeT8Fumb3Hpe/ejEbUkVtCDw+ZsAzOGD609+kDKKI6kFIDgVVz+/7QMRGQrjXcyR zg21a+QsoS1ktnBtT7Y2u9yy7Qf/+c7KgBC4pefUbGsf9iOj+qBqmCZf26RY2nwnGY8H BFDQ== X-Gm-Message-State: AOJu0Yy6VYeFaRLZAjplkiqYXwisBymy8KMDPhLP3DXMkDBf7y/g2UZZ EiDNHrgX94gy5XCllz+nEWb7hGKvlY+ZGrYYrgNCubX43Y8BVxZMmXrFTA== X-Google-Smtp-Source: AGHT+IHKMNysFY/Z79bPCUH7jKry4ABwsapuV93UuXcAakI7K8zKHLJg6PZNDye005nlBHrFzi0J5w== X-Received: by 2002:a05:6a00:3d47:b0:71e:4e2a:38bf with SMTP id d2e1a72fcca58-72476c752e2mr18595241b3a.18.1731957909840; Mon, 18 Nov 2024 11:25:09 -0800 (PST) Received: from thylacine ([223.185.130.222]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724771e1c93sm6769880b3a.144.2024.11.18.11.25.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2024 11:25:09 -0800 (PST) From: Jishnu Kaiwar To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] $PATH under GNOME/Wayland Date: Tue, 19 Nov 2024 00:54:59 +0530 Message-ID: <871pz8mjjo.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain X-Archives-Salt: 4c278398-f57e-4e7c-8de7-52f3b0c0f61c X-Archives-Hash: 3b1ebe62b90f7000bcf6b92f5f2647ed Hi! I was just wondering how those of you who use GNOME and wayland are setting a session wide $PATH and more broadly any environment variable. I used to source ~/.profile in ~/.xession before this. I tried $HOME/.pam_environment on the wiki's recommendation [1] with the syntax from pam_env.conf(5) but this didn't set the variables at all (tested with a simple echo $GOPATH, echo $PATH). It seems Arch Linux's wiki claims that this is not read anymore [2], so I tried their suggested method of using systemd user environment variables based on environment.d(5). Here I had some success in setting some environment variables such as $GOPATH, but it did not change the $PATH as I desired; systemctl --user reload-daemon and show-environment to verify. This is odd because the man page has setting $PATH as an example. Has anybody else run into this issue? If so what do you do instead. I am now sourcing ~/.profile from my ~/.bashrc but this seems not perfectly "correct". Cheers! Jishnu [1] https://wiki.gentoo.org/wiki/Knowledge_Base:Configuring_environment_variables [2] https://wiki.archlinux.org/title/Environment_variables#Using_pam_env