vscode_ros2_workspace icon indicating copy to clipboard operation
vscode_ros2_workspace copied to clipboard

add xauthority for X11 permission issues

Open SubaruArai opened this issue 1 year ago • 2 comments

Under a freshly installed fedora38, this template didn't work due to X11 authentication issues. While this PR should fix it, it needs to be tested with other configurations.

Although to be fair, this should work properly - it's basically the same logic as in osrf/rocker. See: https://github.com/osrf/rocker/blob/2b8d5abb18c829d22f290679b739dc53765198ad/src/rocker/nvidia_extension.py#L36

SubaruArai avatar May 23 '23 05:05 SubaruArai

This doesn't quite work right for me.

I think because nmerge - is looking for a file that doesn't exist?

[3308 ms] Start: Run: /bin/sh -c if [ ! -f /tmp/.1pupkplp20mn9ec9445bfflqpf6b2eoceah3fpn8qv5nc4p0gcrb.xauth ]; then touch /tmp/.1pupkplp20mn9ec9445bfflqpf6b2eoceah3fpn8qv5nc4p0gcrb.xauth; fi && xauth nlist :0 | sed -e 's/^..../ffff/' | xauth -f /tmp/.1pupkplp20mn9ec9445bfflqpf6b2eoceah3fpn8qv5nc4p0gcrb.xauth nmerge -
xauth:  file /home/athackst/.Xauthority does not exist
xauth: (argv):1:  unable to read any entries from file "(stdin)"

You also might consider splitting this out into a shell script file and calling it instead of the command inline.

athackst avatar Jun 03 '23 00:06 athackst

Thanks, I'll check for the error and split into a shell script file.

SubaruArai avatar Jun 19 '23 02:06 SubaruArai