Skip to content

Commit 6c53aca

Browse files
authored
Merge pull request #1356 from Interlisp/EnableMedleyWindowTitleWithSpaces
Modify launcher to enable --title STRING option to work when STRING has embedded spaces (multiple words).
2 parents fbb5a8f + cb8eab7 commit 6c53aca

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

run-medley

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ while [ "$#" -ne 0 ]; do
113113
shift
114114
;;
115115
-title)
116-
title="$2"
116+
if [ -n "$2" ] ; then
117+
title="$2"
118+
fi
117119
shift
118120
;;
119121
-vmem | --vmem | -vmfile)

scripts/medley/medley.command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ mkdir -p ${LOGINDIR}/vmem
139139
if [[ ( ${darwin} = true ) || (( ${wsl} = false || ${use_vnc} = false ) && ${docker} = false) ]];
140140
then
141141
# If not using vnc, just call run-medley
142-
${MEDLEYDIR}/run-medley -id "${run_id}" ${geometry} ${screensize} ${run_args[@]}
142+
${MEDLEYDIR}/run-medley -id "${run_id}" -title "${title}" ${geometry} ${screensize} ${run_args[@]}
143143
else
144144
# do the vnc thing on wsl or docker
145145
source ${SCRIPTDIR}/medley_vnc.sh

scripts/medley/medley_args.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ run_id="default"
2828
screensize=""
2929
sysout_flag=false
3030
sysout_arg=""
31+
title=""
3132
use_vnc=false
3233
windows=false
3334

@@ -112,7 +113,8 @@ do
112113
;;
113114
-t | --title)
114115
check_for_dash_or_end "$1" "$2"
115-
run_args+=(-title $2)
116+
#run_args+=(-title $2)
117+
title="$2"
116118
shift
117119
;;
118120
-v | --vnc)

0 commit comments

Comments
 (0)