X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.xsession;h=f190757950cf090a5e243ad84178be1745c133db;hb=b78de2d9aae918f5207ca6aa4421e401d46a333a;hp=c7cec500e2fa745717e3d12e372e06c24f0b5948;hpb=1718f0a571d31909fd4a554c98feba1210f30e72;p=x_base.git diff --git a/.xsession b/.xsession index c7cec50..f190757 100755 --- a/.xsession +++ b/.xsession @@ -2,6 +2,14 @@ echo "Starting new session" +DATE=$(date "+%Y%m%d_%H%M%S") +# track xsession errors +mv ~/.xsession-errors ~/.xsession-errors_${DATE}; +ln -sf ~/.xsession-errors_${DATE} ~/.xsession-errors-current; +# delete old xsession error files +find ~/ -maxdepth 1 -mindepth 1 -type f \ + -iname '.xsession-errors*' -ctime +30 -delete; + if locale -a |grep -qi en_US.utf8; then LANG="en_US.UTF-8" else @@ -34,7 +42,7 @@ fi; # make a backup of the .Xauthority if [ -e ~/.Xauthority ]; then cp -f .Xauthority .Xauthority.bak -fi; +fi if [ -x /usr/bin/xautolock ]; then /usr/bin/xautolock -notifier true -bell 0 &