
Ich bin ratlos, wie ich PATH unter Gnome Wayland (mit Manjaro 19.x) richtig einstelle.
Ich möchte einstellenPATH=${HOME}/bin:${PATH}:${GOROOT}/bin
GOROOT wird in .config/environment.d/go.conf wie folgt eingestellt:
GOROOT=$HOME/opt/go
Was ich versucht habe:
$HOME/.pam_environment
:PATH DEFAULT=${HOME}/bin:${PATH}:${GOROOT}/bin
PATH
Istirgendwieset:$HOME/bin
wird zweimal hinzugefügt (warum?) und die Erweiterung vonGOROOT
erfolgt nicht. Es scheint, dass systemd die Umgebungsvariablen$HOME/.environment.d/*.conf
später einstellt als pam?$HOME/.config/environment.d/*.conf
funktioniert für viele Variablen, die ich dort festzulegen versuche,PATH
wird aber ignoriert.Einstellung
PATH
in.profile
wird ignoriert
Antwort1
DerKommentar von John Doeist die richtige Antwort: Das Festlegen von PATH .profile
funktioniert, wenn kein vorhanden ist .bash_profile
.