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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D19221581EC for ; Tue, 19 Nov 2024 03:23:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0D7C2E0946; Tue, 19 Nov 2024 03:23:41 +0000 (UTC) Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) (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 578A6E08CA for ; Tue, 19 Nov 2024 03:23:40 +0000 (UTC) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-20cb7139d9dso3977555ad.1 for ; Mon, 18 Nov 2024 19:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731986619; x=1732591419; darn=lists.gentoo.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=xL/jfYNOsri/MO2Ihm6IomoN+inBWH/6C78pxXQ+en0=; b=SwuBFs9pEKiocVY0ds+H1AbcW937VuRMU7EwOJRrLU64lk8vnQdvpNMi493cki/32L 4GdNCHuZOWV0FdBE1wEuBscmjaVu+gkoTEQYMNHmJBdcijqrb3scjNqnjPKSzfDn8x5O 9Ty8meQlxge3lGwFUGuap6b2JYZ8JhaZOQIwVi7GwLqRBk5NHsnLIQicYjdVqRunbhaI FoO7pK+aNyoQ2akh4MP8ps4lqgApshhd70h/l3qe7uhP8T2VIaAHEJgFS0sByrQKZVsr 5JM+olAZGjxBtJsLuttnaugtynjFDOjrj7A7xNABu6rkUEoDpHvOc1hUTXcdUhJwHX0h E+og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731986619; x=1732591419; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xL/jfYNOsri/MO2Ihm6IomoN+inBWH/6C78pxXQ+en0=; b=AVNXhbEz/SUJU9U7O0v/VKt4LYxarQvjEH1/b6N91Q++eyO+87UpvKSmkyH+bQ0zv9 goHmD/lHHdHgZS/kkBAdu6LcEEeQEesDg/t2giYNYYBQborM3fi3seRfj2UAvk2WVRvH EITbcCZ4Jz0sdyUhQQlRbfXjQSxU/lPLjnw1P8qeGFlwS8EiJqAlz8Y2JmO/t5BoaQ0t /LvtVUtNXwuCgPnRKWM8v+UWVoYc6Zd7KkUfel9e06ZCXLmMJPnQSiYUc23xS15ujlzy nwzp01PTCqlAsRVI7r29zFbM5FXGVrjwG8MlkbuifIMkSsKDVMFAhx/8T8tShShW1Jo6 /xew== X-Gm-Message-State: AOJu0Yxg1iobCDfX/sNz2AOehvpr9DJ9J8ZkrgnX5SGSA29mellMWulf oR4hCeFoNvud6CZlPUfoBw+gpczuTeTGv+lcrnPBtTGQX7m1RFLHqrjn5AaA X-Google-Smtp-Source: AGHT+IEOPNnQHXWYqvt5uabsRUoZrNwLpkFP4/rtlxEu67iDhDd0oVnG+UBt4H2pckT/XOcoU/nxMw== X-Received: by 2002:a17:902:ecc8:b0:212:52b9:1571 with SMTP id d9443c01a7336-21252b917f7mr12886105ad.43.1731986619146; Mon, 18 Nov 2024 19:23:39 -0800 (PST) Received: from localhost ([101.119.181.179]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-212536090absm2775195ad.166.2024.11.18.19.23.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2024 19:23:38 -0800 (PST) From: Alexis To: gentoo-user@lists.gentoo.org Cc: Subject: Re: [gentoo-user] $PATH under GNOME/Wayland In-Reply-To: <871pz8mjjo.fsf@gmail.com> (Jishnu Kaiwar's message of "Tue, 19 Nov 2024 00:54:59 +0530") References: <871pz8mjjo.fsf@gmail.com> Date: Tue, 19 Nov 2024 14:23:31 +1100 Message-ID: <871pz7yki4.fsf@gmail.com> 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; format=flowed X-Archives-Salt: 0dc13133-7817-4f9c-a521-b75cffd2dc41 X-Archives-Hash: 104b295719d45b55e7e20ba6f9e36347 Jishnu Kaiwar writes: > 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], In any case, the pam_env(8) man page says that user environment files are not only deprecated, but: > will be removed completely at some point in the future. So once this discussion has determined the appropriate alternative, i'll update that Knowledge Base page on the Gentoo wiki accordingly. > 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". Well, one factor: are you using a display manager, like GDM? Or are you starting your GNOME session from the console? (i might not be able to offer any help, as i use OpenRC, not systemd, and don't use a display manager - over time i've found them to be more trouble than they're worth for my use-case. i start my Wayland sessions - previously Sway, currently Wayfire - from the console, and i set the environment for my login session, including PATH, in ~/.zprofile, Zsh's equivalent of ~/.bash_profile.) Alexis.