Merge pull request #661 from nlogozzo/main

fix: `Autopause` for `docker`
This commit is contained in:
Oskar Manhart
2025-08-24 17:26:46 +02:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -419,8 +419,7 @@ DEBUG="true"
# [AUTOMATICALLY PAUSE WINDOWS] # [AUTOMATICALLY PAUSE WINDOWS]
# NOTES: # NOTES:
# - This is currently INCOMPATIBLE with 'docker' and 'manual'. # - This is currently INCOMPATIBLE with 'manual'.
# - See https://github.com/dockur/windows/issues/674
# DEFAULT VALUE: 'off' # DEFAULT VALUE: 'off'
# VALID VALUES: # VALID VALUES:
# - 'on' # - 'on'

View File

@@ -707,7 +707,7 @@ function waCheckIdle() {
local SUSPEND_WINDOWS=0 local SUSPEND_WINDOWS=0
# Prevent 'autopause' functionality with unsupported Windows backends. # Prevent 'autopause' functionality with unsupported Windows backends.
if [ "$WAFLAVOR" != "manual" ] && [ "$WAFLAVOR" != "docker" ]; then if [ "$WAFLAVOR" != "manual" ]; then
# Check if there are no WinApps-related FreeRDP processes running. # Check if there are no WinApps-related FreeRDP processes running.
if ! ls "$APPDATA_PATH"/FreeRDP_Process_*.cproc &>/dev/null; then if ! ls "$APPDATA_PATH"/FreeRDP_Process_*.cproc &>/dev/null; then
SUSPEND_WINDOWS=1 SUSPEND_WINDOWS=1