diff --git a/template/script.sh.erb b/template/script.sh.erb index 0fa678c34ac468c327a818f8099beb0391accc24..95bd0ed582c71fbe8e7991d6ec3b67788a18edc8 100755 --- a/template/script.sh.erb +++ b/template/script.sh.erb @@ -39,6 +39,7 @@ module list # Launch PyCharm set -x -singularity exec <%= context.extra_singularity_args %> \ +singularity exec --env "DISPLAY:$DISPLAY" -B "/tmp/.X11-unix:/tmp/.X11-unix" \ + <%= context.extra_singularity_args %> \ <%= context.container_path %> \ pycharm