Skip to content

Commit 2dfb1b7

Browse files
authored
Temporary fix in medley.sh to work around Issue #1685. Applies to cygwin only. (#1686)
Temp fix in medley.sh to work around issue #1685. Applies to cygwin only.
1 parent 837f402 commit 2dfb1b7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/medley/medley.command

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,19 @@ then
135135
fi
136136
mkdir -p ${LOGINDIR}/vmem
137137

138+
# temp fix for cygwin to workaround issue #1685
139+
# 2024-04-29
140+
MEDLEYDIR_BASE="${MEDLEYDIR}"
141+
if [ "$(uname -s | head --bytes 6)" = "CYGWIN" ]
142+
then
143+
MEDLEYDIR="${MEDLEYDIR}/"
144+
fi
145+
138146
# Call run-medley with or without vnc
139147
if [[ ( ${darwin} = true ) || (( ${wsl} = false || ${use_vnc} = false ) && ${docker} = false) ]];
140148
then
141149
# If not using vnc, just call run-medley
142-
${MEDLEYDIR}/run-medley -id "${run_id}" -title "${title}" ${geometry} ${screensize} ${run_args[@]}
150+
${MEDLEYDIR_BASE}/run-medley -id "${run_id}" -title "${title}" ${geometry} ${screensize} ${run_args[@]}
143151
else
144152
# do the vnc thing on wsl or docker
145153
source ${SCRIPTDIR}/medley_vnc.sh

0 commit comments

Comments
 (0)