通过IE登录Web Interface自动打开虚拟桌面是Web Interface默认支持的功能,对于后台为XenApp的Web Inteface来说也能实现同样的功能,前提是:

Citrix Web Interface 5.1.x 以上
Citrix XenApp 4.5 以上
用户只有一个Published的应用
客户端通过 Internet Explorer, Firefox 打开站点.


注意点:
打开自动启动应用功能会禁用Workspace Control特性。

实现步骤:

1.添加站点到IE受信任站点

2.编辑AppList.java文件 ,位于\inetpub\wwwroot\Citrix\<site-Name>\app_code\PagesJava\com\citrix\wi\pages\site\

替换其中一行

import com.citrix.wing.webpn.DesktopInfo;

import com.citrix.wing.webpn.ApplicationInfo;

替换行 if ((singlePublishedItem != null) && (singlePublishedItem instanceof DesktopInfo)) 为

if ((singlePublishedItem != null) && (singlePublishedItem instanceof ApplicationInfo))

修改完毕,保存。

3.编辑webinterface.conf文件

位于\inetpub\wwwroot\Citrix\<site-Name>\conf目录下面

修改行

 # AutoLaunchDesktop=Off ,改为
    AutoLaunchDesktop=On
保存文件,重新启动World Wide Web 服务。
 
4.访问测试
 

完。