1
0
mirror of synced 2026-01-26 12:21:52 +00:00

Add a --vnc flag to loadup script, used to tell loadup scripts to run Medley with the --vnc option. Used primarily on WSL1 and WSL2 systems where loadup defaults to X Windows. But can be used on any Linux platform that uses Xvnc. Not relevant on MacOS and Cygwin. Man page updated accordingly.

This commit is contained in:
Frank Halasz
2025-06-04 16:47:24 -07:00
parent 38f417907a
commit a398d40630
6 changed files with 85 additions and 201 deletions

View File

@@ -19,6 +19,8 @@ main() {
thinl=false
override_lock=false
ignore_lock=false
export LOADUP_USE_VNC="-"
while [ "$#" -ne 0 ];
do
case "$1" in
@@ -146,6 +148,9 @@ main() {
export MAIKODIR="${maikodir}"
shift
;;
-v | -vnc | --vnc)
export LOADUP_USE_VNC="+"
;;
-ov | -override | --override)
override_lock=true
;;

View File

@@ -171,6 +171,7 @@ run_medley () {
--rem.cm "${cmfile}" \
--greet "${initfile}" \
--sysout "$1" \
--vnc "${LOADUP_USE_VNC}" \
"$2" "$3" "$4" "$5" "$6" "$7" ;
exit_code=$?
}