Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-07-22 21:35:04

jesus2099
Member
Registered: 2020-05-04
Posts: 8

Load /etc/profile when opening Terminal

I needed a snap package (snap install rpi-imager) so I installed snapd with Synaptic (Debian 10 Xfce).

Then I noticed $PATH in Terminal sessions had not been updated to include /snap/bin.
I checked the internet and understood the snap installs its environment changes in /etc/profile.d/apps-bin-path.sh, which is itself loaded by /etc/profile.

So it seems that /etc/profile is some frequently used environment settings file.

I then found an interesting post advising to add these lines somewhere:

test -f /etc/environment && source /etc/environment
test -f /etc/profile && source /etc/profile

I read somewhere else, that /etc/bash.bashrc should include that.

There is no Debian forum and I don't know if adding these (missing?) lines somewhere in Debian Xfce would be the job of Debian or of Xfce.
Or should the snapd packager for Debian manage the $PATH differently?

Offline

Board footer

Powered by FluxBB