[gdm-list] problem with dircolors



I have just upgraded to gdm-2.18.3 and I found that I was not getting LS_COLORS set when I logged in. I investigated the problem and found that dircolors was being run in /etc/profile via the Xsessions script, but it was returning nothing because TERM was not set.

I checked on the old version of gdm I had and saw that in the Xsession there was included a check for TERM being set to something meaningful before calling profile. When I added the following to my 2.18.3 Xsession file it set LS_COLORS correctly

# check for a valid TERM to get correct LS_COLOR from profile
if [ -z $TERM -o "$TERM" = "dumb" ]; then
   export TERM=linux
fi





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]