Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 down vote accepted

per this https://wiki.archlinux.org/index.php/Xfce#Session 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
1  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.