On Fri, 27 Jul 2018 10:57:48 -0400 "John Stoffel" <j...@stoffel.org> wrote:
> It sounds like when the script runs, the Xserver isn't quite ready, > and xmodmap is waiting for that. Maybe you can start debugging by > putting: > > xmodmap -verbose -pm > > before your call, to see what it prints out. And make sure the > $DISPLAY is set correctly too! $DISPLAY is set correctly. The "xmodmap -verbose -pm" in a session works fine. Writing the output to /tmp/test.txt doesn't change anything. > You can also do an 'strace xmodmap ...' call in there, to see where > it's going and what it's calling to. [..] access("/home/richard/.Xauthority", R_OK) = 0 openat(AT_FDCWD, "/home/richard/.Xauthority", O_RDONLY) = 4 fstat(4, {st_mode=S_IFREG|0600, st_size=100, ...}) = 0 read(4, "\1\0\0\4x2go\0\00250\0\22MIT-MAGIC-COOKIE-1"..., 4096) = 100 read(4, "", 4096) = 0 close(4) = 0 getsockname(3, {sa_family=AF_UNIX}, [124->2]) = 0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}]) writev(3, [{iov_base="l\0\v\0\0\0\22\0\20\0\0\0", iov_len=12}, {iov_base="", iov_len=0}, {iov_base="MIT-MAGIC-COOKIE-1", iov_len=18}, {iov_base="\0\0", iov_len=2}, {iov_base="\360R\364\23\360\261\331\215\t\275\241en#`3", iov_len=16}, {iov_base="", iov_len=0}], 6) = 48 recvfrom(3, 0x558d1d8c28a0, 8, 0, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable) That's where ist stops. The complete strace is here: http://tmp.xaq.nl/strace.txt R. -- richard lucassen http://contact.xaq.nl/ _______________________________________________ x2go-user mailing list x2go-user@lists.x2go.org https://lists.x2go.org/listinfo/x2go-user