mirror of
https://github.com/winapps-org/winapps.git
synced 2025-09-09 19:19:30 +02:00
Merge pull request #661 from nlogozzo/main
fix: `Autopause` for `docker`
This commit is contained in:
@@ -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'
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user