From bd85b9292614b5c59c23658face49d9240c4121b Mon Sep 17 00:00:00 2001 From: Frank Halasz Date: Mon, 29 Apr 2024 23:29:34 -0700 Subject: [PATCH] Temp fix in medley.sh to work around issue #1685. Applies to cygwin only. --- scripts/medley/medley.command | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/medley/medley.command b/scripts/medley/medley.command index 14b922a36..f37ef8b8f 100755 --- a/scripts/medley/medley.command +++ b/scripts/medley/medley.command @@ -135,11 +135,19 @@ then fi mkdir -p ${LOGINDIR}/vmem +# temp fix for cygwin to workaround issue #1685 +# 2024-04-29 +MEDLEYDIR_BASE="${MEDLEYDIR}" +if [ "$(uname -s | head --bytes 6)" = "CYGWIN" ] +then + MEDLEYDIR="${MEDLEYDIR}/" +fi + # Call run-medley with or without vnc 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}" -title "${title}" ${geometry} ${screensize} ${run_args[@]} + ${MEDLEYDIR_BASE}/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