From strace I can see that programs are looking for socket "/tmp/.ICE-unix/6026". With 'ls', I can see that instead there is a socket "/tmp/.ICE-unix/6943". So I can bypass the problem by creating a symlink:
$ cd /tmp/.ICE-unix/
$ ln -s 6943 6026
$ ls -l
total 0
lrwxrwxrwx 1 tee tee 4 2008-08-14 12:06 6026 -> 6943
srwxrwxrwx 1 tee tee 0 2008-08-11 12:33 6943
After that, xterm opens immediately.
$ xterm
Warning: Tried to connect to session manager, Authentication Rejected, reason : MIT-MAGIC-COOKIE-1 authentication rejected
Vim also opens without delay. However, OpenOffice still does not work.
Problem can be bypassed by creating a symlink.
From strace I can see that programs are looking for socket "/tmp/. ICE-unix/ 6026". With 'ls', I can see that instead there is a socket "/tmp/. ICE-unix/ 6943". So I can bypass the problem by creating a symlink:
$ cd /tmp/.ICE-unix/
$ ln -s 6943 6026
$ ls -l
total 0
lrwxrwxrwx 1 tee tee 4 2008-08-14 12:06 6026 -> 6943
srwxrwxrwx 1 tee tee 0 2008-08-11 12:33 6943
After that, xterm opens immediately.
$ xterm
Warning: Tried to connect to session manager, Authentication Rejected, reason : MIT-MAGIC-COOKIE-1 authentication rejected
Vim also opens without delay. However, OpenOffice still does not work.