Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We're using Ubuntu 12.04.1 with Xfce 4.8. We have a script which sets environment variables needed by our software. In the past, I figured out how to run this script in the Xfce start up so that these environment variables are set up and available to gui based programs launched via icons. Recently an OS upgrade wiped out this setting and I can't remember or find how to do this. I've tried sourcing the script from ~/.profile, ~/.xinitrc, and ~/.config/xfce4/xinitrc, but no luck.

share|improve this question
up vote 2 down vote accepted

per this you should "Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/". I edited etc/xdg/xfce4/xinitrc directly and the var was in the user session.

share|improve this answer
I had edited that file ... but didn't have the correct path to the file with the customized environment variables. Doh! Thanks. – GreenMatt Jan 7 '13 at 14:50
This doesn't work for me. There is just no effect. – Kritzefitz Feb 25 at 19:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .