Skip to content

Pass XAUTHORITY env? #328

@rhancockn

Description

@rhancockn

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)?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Active

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions