]> git.donarmstrong.com Git - x_base.git/commitdiff
* make a backup of the .Xauthority file
authorDon Armstrong <don@donarmstrong.com>
Thu, 22 Jun 2006 22:09:18 +0000 (22:09 +0000)
committerDon Armstrong <don@donarmstrong.com>
Thu, 22 Jun 2006 22:09:18 +0000 (22:09 +0000)
.xsession

index 14d991fd297892e0f11c265578b40708945bffc0..a7f71e5dce1d759524a92f7607c961a53e36c65d 100755 (executable)
--- a/.xsession
+++ b/.xsession
@@ -32,6 +32,11 @@ if [ -e ~/.xsession_$HOSTNAME ]; then
     . ~/.xsession_$HOSTNAME
 fi;
 
+# make a backup of the .Xauthority
+if [ -e ~/.Xauthority ]; then
+    cp -f .Xauthority .Xauthority.bak
+fi;
+
 if [ -x /usr/bin/xscreensaver -a -e ~/.xscreensaver ]; then
     /usr/bin/xscreensaver &
 fi;