To add to the issue, `/etc/environment` has one line setting `PATH` and
throwing out any old versions of `PATH` (it doesn't contain `$PATH`).
Changing that changed my `PATH` consistently on reboot:

    $ cat /etc/environment
    
PATH="/opt/ghc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
    $ printenv PATH
    
/home/ubuntu/.cargo/bin:/home/ubuntu/bin:/opt/ghc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

I tried adding a line to `/etc/environment.d/60-haskell.conf` setting
`ZOMG=zomg`, but it wasn't picked up on reboot, so it appears that files
in `/etc/environment.d` do nothing at all, not that they're just
overwritten by `/etc/environment`.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861363

Title:
  /etc/environment.d cannot be used to add to PATH

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1861363/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to