From e5e83fee30f8e949f7d11877aa6d1fddd65c5ce1 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 11 Sep 2025 10:39:40 +0200 Subject: [PATCH] feat: add hidef option to config file Signed-off-by: Loek Le Blansch --- README.md | 6 ++++++ bin/winapps | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 39f6546..fb6ac1b 100644 --- a/README.md +++ b/README.md @@ -480,6 +480,12 @@ APP_SCAN_TIMEOUT="60" # - The maximum time (in seconds) to wait for the Windows VM to boot if it is not running, before attempting to launch an application. # DEFAULT VALUE: '120' BOOT_TIMEOUT="120" + +# FREERDP RAIL HIDEF +# - This option controls the value of the `hidef` option passed to the /app parameter of the FreeRDP command. +# - Setting this option to 'off' may resolve window misalignment issues related to maximized windows. +# DEFAULT VALUE: 'on' +HIDEF="on" ``` > [!IMPORTANT] diff --git a/bin/winapps b/bin/winapps index 1d96c47..7c33bb0 100755 --- a/bin/winapps +++ b/bin/winapps @@ -53,6 +53,7 @@ AUTOPAUSE="off" AUTOPAUSE_TIME="300" DEBUG="true" BOOT_TIMEOUT=120 +HIDEF="on" # OTHER FREERDP_PID=-1 @@ -625,7 +626,7 @@ function waRunCommand() { /p:"$RDP_PASS" \ /scale:"$RDP_SCALE" \ +auto-reconnect \ - /app:program:"$2" \ + /app:program:"$2",hidef:"$HIDEF" \ /v:"$RDP_IP" &>/dev/null & # Capture the process ID. @@ -658,7 +659,7 @@ function waRunCommand() { /scale:"$RDP_SCALE" \ +auto-reconnect \ /wm-class:"$FULL_NAME" \ - /app:program:"$WIN_EXECUTABLE",icon:"$ICON",name:"$FULL_NAME" \ + /app:program:"$WIN_EXECUTABLE",icon:"$ICON",name:"$FULL_NAME",hidef:"$HIDEF" \ /v:"$RDP_IP" &>/dev/null & # Capture the process ID. @@ -680,7 +681,7 @@ function waRunCommand() { +auto-reconnect \ /drive:media,"$REMOVABLE_MEDIA" \ /wm-class:"$FULL_NAME" \ - /app:program:"$WIN_EXECUTABLE",icon:"$ICON",name:"$FULL_NAME",cmd:\""$FILE_PATH"\" \ + /app:program:"$WIN_EXECUTABLE",icon:"$ICON",name:"$FULL_NAME",cmd:\""$FILE_PATH"\",hidef:"$HIDEF" \ /v:"$RDP_IP" &>/dev/null & # Capture the process ID.