Merge pull request #1356 from Interlisp/EnableMedleyWindowTitleWithSpaces
Modify launcher to enable --title STRING option to work when STRING has embedded spaces (multiple words).
This commit is contained in:
commit
6c53acaca8
@ -113,7 +113,9 @@ while [ "$#" -ne 0 ]; do
|
||||
shift
|
||||
;;
|
||||
-title)
|
||||
title="$2"
|
||||
if [ -n "$2" ] ; then
|
||||
title="$2"
|
||||
fi
|
||||
shift
|
||||
;;
|
||||
-vmem | --vmem | -vmfile)
|
||||
|
||||
@ -139,7 +139,7 @@ mkdir -p ${LOGINDIR}/vmem
|
||||
if [[ ( ${darwin} = true ) || (( ${wsl} = false || ${use_vnc} = false ) && ${docker} = false) ]];
|
||||
then
|
||||
# If not using vnc, just call run-medley
|
||||
${MEDLEYDIR}/run-medley -id "${run_id}" ${geometry} ${screensize} ${run_args[@]}
|
||||
${MEDLEYDIR}/run-medley -id "${run_id}" -title "${title}" ${geometry} ${screensize} ${run_args[@]}
|
||||
else
|
||||
# do the vnc thing on wsl or docker
|
||||
source ${SCRIPTDIR}/medley_vnc.sh
|
||||
|
||||
@ -28,6 +28,7 @@ run_id="default"
|
||||
screensize=""
|
||||
sysout_flag=false
|
||||
sysout_arg=""
|
||||
title=""
|
||||
use_vnc=false
|
||||
windows=false
|
||||
|
||||
@ -112,7 +113,8 @@ do
|
||||
;;
|
||||
-t | --title)
|
||||
check_for_dash_or_end "$1" "$2"
|
||||
run_args+=(-title $2)
|
||||
#run_args+=(-title $2)
|
||||
title="$2"
|
||||
shift
|
||||
;;
|
||||
-v | --vnc)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user