diff --git a/template/script.sh.erb b/template/script.sh.erb index 95bd0ed582c71fbe8e7991d6ec3b67788a18edc8..297ba8bfd0ce2ebca47a4dda029d518457e218f6 100755 --- a/template/script.sh.erb +++ b/template/script.sh.erb @@ -3,8 +3,6 @@ # Set working directory to home directory cd "${HOME}" -module reset - # # Launch Xfce Window Manager and Panel # @@ -37,9 +35,14 @@ module load Anaconda3 # List loaded modules module list +# Debug Statements +echo "Display: ${DISPLAY}" + # Launch PyCharm set -x -singularity exec --env "DISPLAY:$DISPLAY" -B "/tmp/.X11-unix:/tmp/.X11-unix" \ +cmd="singularity exec --env \"DISPLAY:$DISPLAY\" -B \"/tmp/.X11-unix:/tmp/.X11-unix\" \ <%= context.extra_singularity_args %> \ <%= context.container_path %> \ - pycharm + pycharm" + +echo ${cmd}