# Citrix Profile Configuration

### Installing Chrome Extensions in Citrix

Browser Extensions in Citrix should be deployed via Windows Group Policy (as opposed to including in the VDI). Chrome Extensions are installed per user/browser profile.

See [windows-group-policy-admx](https://docs.pixiebrix.com/enterprise-it-setup/browser-extension-installation-and-configuration/browser-extension-installation-policy/windows-group-policy-admx "mention") for information on configuring the Windows Group Policy

Chrome installs extensions in the following directory: `AppData\Local\Google\Chrome\User Data\Default\Extensions`

### Citrix Profile Management

Large Google Chrome profiles can slow down logons and logoffs. For performance, Citrix recommends [excluding parts of the Chrome Profile from profile synchronization](https://docs.citrix.com/en-us/profile-management/current-release/integrate/google-chrome.html).

Carl Stalhood maintains a 3rd-party profile management guide with a broader list of [synchronization exclusions to consider](https://www.carlstalhood.com/citrix-profile-management/#exclusions55)

#### Folders to Include in Synchronization

Add the following folder to the list of folders to mirror:

```
AppData\Local\Google\Chrome\User Data\Default
```

#### **Folders to Exclude from Profile Synchronization**

```
AppData\Local\Google\Chrome\User Data\Default\Cache
AppData\Local\Google\Chrome\User Data\Default\JumpListIconsMostVisited
AppData\Local\Google\Chrome\User Data\Default\JumpListIconsRecentClosed
AppData\Local\Google\Chrome\User Data\Default\Media Cache
```

Additionally, exclude the [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API) directories corresponding to the PixieBrix extension:

```
AppData\Local\Google\Chrome\User Data\Default\IndexedDB\chrome-extension_mpjjildhmpddojocokjkgmlkkkfjnepo_0.indexeddb.blob
AppData\Local\Google\Chrome\User Data\Default\IndexedDB\chrome-extension_mpjjildhmpddojocokjkgmlkkkfjnepo_0.indexeddb.leveldb
```

#### Files to Exclude from Profile Synchronization

```
AppData\Local\Google\Chrome\User Data\Default\Favicons
AppData\Local\Google\Chrome\User Data\Default\History
AppData\Local\Google\Chrome\User Data\Default\Preferences
```

Files unrelated to Bookmarks in the `Default` folder

### Resources

* [Citrix Documentation: Profile Management > Google Chrome Browser](https://docs.citrix.com/en-us/profile-management/current-release/integrate/google-chrome.html)
* [Citrix Documentation: Profile Management > Configure > Include and exclude items > Default exclusions and inclusions](https://docs.citrix.com/en-us/profile-management/current-release/configure/include-and-exclude-items/defaults.html)
* [Citrix Documentation: Profile Management > Configure > Manage Transactional Folders > Specify folders to mirror](https://docs.citrix.com/en-us/profile-management/current-release/configure/manage-transactional-folders.html)
* [Citrix Documentation: Profile Management > Stream user profiles](https://docs.citrix.com/en-us/profile-management/current-release/configure/stream-profiles)
* [Citrix Deployment Guides: Deployment Guide: Google Chrome > Manage Chrome extensions](https://community.citrix.com/tech-zone/build/deployment-guides/google-chrome/#wiki-header-15)
* [Citrix Deployment Guides: Deployment Guide: Microsoft Edge > Optimizations > Extensions](https://community.citrix.com/tech-zone/build/deployment-guides/microsoft-edge/#wiki-header-16)

### Troubleshooting

#### Users receive a "We're having trouble connecting to your browser's local database" banner or an "Internal error opening backing store for IndexedDB.open" error&#x20;

These error messages indicate that the local IndexedDB database is corrupted or that Chrome is otherwise unable to access the necessary database files in the Chrome profile.

To avoid IndexedDB connection problems, exclude the extension's IndexedDB folders from synchronization, or ensure that the IndexedDB files are excluded from Citrix profile streaming (so the IndexedDB directories are synchronized immediately upon login).

For more information on troubleshooting IndexedDB errors, see [troubleshooting-indexeddb-errors](https://docs.pixiebrix.com/how-to/troubleshooting/troubleshooting-indexeddb-errors "mention")

#### Chrome stores old versions of the extension in the profile

There's a long-standing Chromium bug the preserves old versions of browser extensions on the file system: [Extension taking disk space with old versions](https://issues.chromium.org/issues/40715610)

The extension installation directory is: `AppData\Local\Google\Chrome\User Data\Default\Extensions`

If your Citrix profile policy is set to persist and synchronize the Chrome extensions directory, you may want to periodically clear the extensions directory.
