-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I had trouble running a GUI over untrusted (ssh -X
) X11 forwarding. The container was launched as a slurm job, which may interact with this. The container was launched with
singularity --silent exec --cleanenv --env DISPLAY=$DISPLAY --bind $TMPDIR:/tmp $neurodesk_singularity_opts --pwd "$PWD" PATH/neurocommand/local/containers/bidscoin_4.4.0_20241003/bidscoin_4.4.0_20241003.simg bidseditor bids
Passing in the XAUTHORITY
environment variable fixed this:
singularity --silent exec --cleanenv --env DISPLAY=$DISPLAY --env XAUTHORITY=$XAUTHORITY --bind $TMPDIR:/tmp $neurodesk_singularity_opts --pwd "$PWD" PATH/neurocommand/local/containers/bidscoin_4.4.0_20241003/bidscoin_4.4.0_20241003.simg bidseditor bids
Could the transparent singularity wrapper include XAUTHORITY
env by default? Or is there another way of the user manipulating the singularity options (I couldn't find this in the docs)?