From 2ec6330b6bda7c8538bf286a0c68f6bd3e4bd975 Mon Sep 17 00:00:00 2001 From: miles-read Date: Tue, 8 Sep 2026 16:38:13 +0100 Subject: [PATCH 1/3] Resolve relative paths to absolute before Windows path conversion --- bin/winapps | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/winapps b/bin/winapps index 0a074bf0..b17fac0a 100755 --- a/bin/winapps +++ b/bin/winapps @@ -872,6 +872,9 @@ function waRunCommand() { # Capture the process ID. FREERDP_PID=$! else + # Resolve relative file paths to absolute + [ "${2#/}" = "${2}" ] && set -- "${1}" "$(pwd)/${2}" + # Convert path from UNIX to Windows style. FILE_PATH=$(echo "$2" | sed \ -e 's|^'"${HOME}"'|\\\\tsclient\\home|' \ From 01a3d066c9dfa4dd3f2c1003e2c84bcace45ad9a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 15:47:12 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Signed-off-by: miles-read --- bin/winapps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/winapps b/bin/winapps index b17fac0a..34341bb0 100755 --- a/bin/winapps +++ b/bin/winapps @@ -872,8 +872,8 @@ function waRunCommand() { # Capture the process ID. FREERDP_PID=$! else - # Resolve relative file paths to absolute - [ "${2#/}" = "${2}" ] && set -- "${1}" "$(pwd)/${2}" + # Resolve relative file paths to absolute + [ "${2#/}" = "${2}" ] && set -- "${1}" "$(pwd)/${2}" # Convert path from UNIX to Windows style. FILE_PATH=$(echo "$2" | sed \ From e8fd503c35dc1d322478e97dc4f619348c25eede Mon Sep 17 00:00:00 2001 From: miles-read Date: Wed, 16 Sep 2026 10:53:39 +0100 Subject: [PATCH 3/3] added indents Signed-off-by: miles-read --- bin/winapps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/winapps b/bin/winapps index 34341bb0..8fb4b353 100755 --- a/bin/winapps +++ b/bin/winapps @@ -872,8 +872,8 @@ function waRunCommand() { # Capture the process ID. FREERDP_PID=$! else - # Resolve relative file paths to absolute - [ "${2#/}" = "${2}" ] && set -- "${1}" "$(pwd)/${2}" + # Resolve relative file paths to absolute + [ "${2#/}" = "${2}" ] && set -- "${1}" "$(pwd)/${2}" # Convert path from UNIX to Windows style. FILE_PATH=$(echo "$2" | sed \