22 Apr

Symptoms or Error

Setting registry key: ForegroundLockTimeout to 0 makes published desktop window to launch in foreground in most cases.

HKCU\Control Panel\Desktop

name: ForegroundLockTimeout


data: 0 (default: 200000)

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.


size=0 width="100%" align=center> 

 In these cases, set ForegroundLockTimeout to 0 pragmatically using fglocktimeout.exe before launching published desktop.



1. download fglocktimeout.exe from CTX140095

2. run fglocktimeout /z before launching published desktop. size=0 width="100%" align=center> 

 Problem cause

some other application on client machine is setting ForegroundLockTimeout to a value other than 0 size=0 width="100%" align=center> 


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.