1
0
mirror of synced 2026-01-25 20:06:44 +00:00

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-17 23:40:26 -07:00
parent 50dc0a9269
commit cb8eab788a
3 changed files with 7 additions and 3 deletions

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)