Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Cannot seem to update PATH using ~/.config/environment.d

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
equaeghe
l33t
l33t
Posts: 679
Joined: Tue Feb 22, 2005 8:02 pm

Cannot seem to update PATH using ~/.config/environment.d

  • Quote

Post by equaeghe » Wed Jan 21, 2026 3:45 pm

I want to add my local bindir (~/.local/bin) to my path in my new setup (old KDE one works fine, but uses a KDE-specific file, plasma-workspace/env/path.sh). Now, I'd like to move to putting such manual environment definitions in ~/.config/environment.d, in various conf files there. I already have a few there and they work fine. Now, I added on to update my path:

Code: Select all

cat ~/.config/environment.d/05-path.conf 
PATH=$HOME/.local/bin:$PATH
and this does not get picked up, not after running systemctl --user daemon-reload, not after a reboot. I did check that the path definition itself is fine:

Code: Select all

echo $HOME/.local/bin:$PATH
/home/equaeghe/.local/bin:/home/equaeghe/.config/carapace/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/21/bin:/usr/lib/llvm/20/bin
Any help getting my path set as it should appreciated.
Top
b11n
Guru
Guru
User avatar
Posts: 303
Joined: Wed Mar 26, 2003 8:15 am
Location: New Zealand

  • Quote

Post by b11n » Wed Jan 21, 2026 5:37 pm

It depends on how your shell is getting started:
man environment.d(5) wrote:Applicability

Environment variables exported by the user service manager (systemd --user instance started in the user@uid.service system service) are passed to any services started by that service manager. In particular, this may include services which run user shells. For example in the GNOME environment, the graphical terminal emulator runs as the gnome-terminal-server.service user unit, which in turn runs the user shell, so that shell will inherit environment variables exported by the user manager. For other instances of the shell, not launched by the user service manager, the environment they inherit is defined by the program that starts them. Hint: in general, systemd.service(5) units contain programs launched by systemd, and systemd.scope(5) units contain programs launched by something else.
You might find it easier to set your path in your ~/.bash_profile as well, if that's the shell you're using.
Is there gas in the caaaaar?
Yes, there's gas in the caaaar
Top
equaeghe
l33t
l33t
Posts: 679
Joined: Tue Feb 22, 2005 8:02 pm

  • Quote

Post by equaeghe » Sat Jan 31, 2026 5:32 pm

Solved, see https://bugs.gentoo.org/969230.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic