Citrix XenApp/XenDesktop: Electron apps fail after an update (hook exclusion)
Workaround for Electron-based applications (VS Code, Edge, Joplin...) that stop working in a Citrix session: exclude them from API hooking in the registry.
After an update, Electron-based applications (Visual Studio Code, Microsoft Edge, Joplin, Signal and others) can stop working inside a Citrix XenApp/XenDesktop session. The workaround found on the Visual Studio Code issue tracker shows that the problem comes from Citrix API hooking (CtxHook). The workaround excludes the application executables from that hooking, through a registry value on the Citrix server.
Workaround
Make the change on the Citrix server, with administrator rights.
| Item | Value |
|---|---|
| Key | HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\citrix\CtxHook |
| Value name | ExcludedImageNames |
| Type | REG_SZ |
| Data | Code.exe,msedge.exe,firefox.exe,Joplin.exe |
To exclude another application, add its executable name to the comma-separated list.
Notes
- Before changing the registry, check whether starting the application with
--disable-gpuhelps, as suggested in the references below. - The list is a workaround. Remove the entries if Citrix publishes a fix.