Hello, I am trying to set system wide environment variables that appear when not using a terminal. I already know how to do it for a terminal. For example, I created a file in /etc/profile.d/usrlocallib.sh which says
Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
and sure enough, every time I open a terminal and run printenv, /usr/local/lib is inside LD_LIBRARY_PATH.
Here is the problem: even though I set this variable for a terminal, I still get issues when not using a terminal. For example: when I open k3b from the Applications->Sound and Video menu, and click on the option /dev/dvd, with an encrypted dvd in my drive. It says "Install libdvdcss for video dvd decryption support." I
have installed libdvdcss, in /usr/local/lib. So when I open a terminal, then run
It opens k3b perfectly fine, and when I click on /dev/dvd, it opens it perfectly fine without any errors, and can decrypt a dvd. So...
I need a way to set system-wide environment variables that hold even when not using a terminal: so I don't have to run all my GUI's from terminal.