In some cases, there are applications that set this value to a non 0 value, which makes the published desktop window to launch in background of other windows.
Environment
Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.
Resolution
In these cases, set ForegroundLockTimeout to 0 pragmatically using fglocktimeout.exe before launching published desktop.
procedure ----- 1. download fglocktimeout.exe from CTX140095 2. run fglocktimeout /z before launching published desktop.
Problem Cause
some other application on client machine is setting ForegroundLockTimeout to a value other than 0
Issue/Introduction
How to make published desktop window launch in foreground.