From: Jishnu Kaiwar <jishnukaiwar@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] $PATH under GNOME/Wayland
Date: Tue, 19 Nov 2024 00:54:59 +0530 [thread overview]
Message-ID: <871pz8mjjo.fsf@gmail.com> (raw)
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
next reply other threads:[~2024-11-18 19:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-18 19:24 Jishnu Kaiwar [this message]
2024-11-19 3:23 ` [gentoo-user] $PATH under GNOME/Wayland Alexis
2024-11-19 5:36 ` Jishnu Kaiwar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871pz8mjjo.fsf@gmail.com \
--to=jishnukaiwar@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox