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