- Set environment variables in
.profile - Make a file
.bash_profileand include command below.
if [ -f ~/.profile ]; then
. ~/.profile
fi
-
Make a file
.xsessionrcwith the same commands. -
DO NOT SET
GTK_IM_MODULE,QT_IM_MODULE,XMODIFIES=@imin.profile.Otherwise your IM won't start automatically no more. It will prevent the system script that sets these variables automatically from working.