@@ -12,4 +12,10 @@ TEMP=~/.xpra/temp.log
xpra info $DISPLAY > $TEMP || xpra start $DISPLAY;
-nohup $SLICER/Slicer --no-main-window --python-script $1 0<&- &> $HOME/logs/runSlicer.log &
+LOG=$HOME/logs/runSlicer.log
+
+if [ $# -gt 2 ] ; then
+ LOG=$3/runSlicer.log;
+fi;
+nohup $SLICER/Slicer --no-main-window --python-script $1 $2 0<&- &> $LOG &