Summary
This document describes how to set a folder as the default folder in Web Interface 4.x.
Background
Some users prefer to open a folder in Web Interface as the default folder. This is a setting that can’t be configured in the Access Center Console, it requires a code modification.
Procedure
Warning! Modify the source code at your own risk. Making modifications can cause serious problems that might require you to reinstall your Web Interface.
1. Locate the applist.cs file in the following directory:
x:\Inetpub\wwwroot\citrix\metaframe\site\serverscripts\
2. Open the applist.cs file with a text editor and browse to the following line:
if (currentFolder == null) { currentFolder = ""; }
3. Put the name of the folder you wish to set as the default between the quotation marks. For example:
if (currentFolder == null) { currentFolder = "Microsoft Office Applications"; }
4. Disable the Remember Folder Location feature.
5. In applist.cs locate the following section and add excluding tags. Change the following lines:
if (currentFolder == null) {
currentFolder = retrieveCurrentFolderName();
if (currentFolder == null) {
if( !java.lang.Boolean.FALSE.Equals(
userPrefs.getRememberFolder() ) ) {
currentFolder = userPrefs.getCurrentFolder();
}
}
}
To what is shown below:
if (currentFolder == null) {
currentFolder = retrieveCurrentFolderName();
/*
if (currentFolder == null) {
if( !java.lang.Boolean.FALSE.Equals(
userPrefs.getRememberFolder() ) ) {
currentFolder = userPrefs.getCurrentFolder();
}
}
*/
}
6. Save the changes and restart Internet Information Services (IIS).
More Information
In Web Interface 4.5, the file is called applist.aspx and is located in the following directory:
C:\Inetpub\wwwroot\Citrix\AccessPlatform\app_data\site\serverscripts
In Web Interface 4.6, the file is called applist.aspxf and is located in the following directory:
C:\Inetpub\wwwroot\Citrix\AccessPlatform\app_data\site\serverscripts
To adjust the setting on a per-user basis, you must actually log on and select Customize the user interface > Presentation Preferences. Refer to the following screen shots:


