this post was submitted on 08 Aug 2024
3 points (100.0% liked)
raspberrypi
3350 readers
2 users here now
Community about the single-board computers, micro-controllers and related projects.
Other RaspberryPi communities on Lemmy
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This is just not true. Environment variables are only going to be used by programs that are looking for them specifically. Putting them in your .bashrc as you have done is going to make them only available in contexts where that file is sourced, e.g. interactive command line environments.
You probably experience this because you used a single
>
to overwrite your .bashrc entirely with that single command. Anything that was in that file before is now gone. Using>>
will append rather than overwrite.That variable in particular is probably one used by mesa, a 3D graphics library. It's only going to be used by programs that use the mesa library. I don't know what it does exactly, but there will be documentation somewhere.