1
0
mirror of synced 2026-01-12 00:42:56 +00:00

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:
Matt Heffron 2023-10-18 14:01:19 -07:00 committed by GitHub
commit 6c53acaca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -113,7 +113,9 @@ while [ "$#" -ne 0 ]; do
shift
;;
-title)
title="$2"
if [ -n "$2" ] ; then
title="$2"
fi
shift
;;
-vmem | --vmem | -vmfile)

View File

@ -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

View File

@ -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)