Changing the location of the per-user bottle directory

You can control the location of the users' bottle directory which is normally ~/.cxoffice. This is an advanced setting which is usually not needed but which can be useful to minimize network traffic if the $HOME directories are on an NFS filesystem, or if they have very strict quotas.

For instance, let's assume that each user on the system has access to a local directory named /local/login where login is the user's account name. Let's further assume that for each user, the USER environment variable is set to the user's account name. Then you can tell CrossOver to place the bottle directory in the local directory by editing /opt/cxoffice/etc/cxoffice.conf and appending the following lines:

[EnvironmentVariables]
"CX_BOTTLE_DIR"="/local/${USER}"

However note that this will not move any pre-existing bottles. To move these to the new location you would run the following command for each user:

$ mv "~/.cxoffice/bottlename" /local/user

A user can also perform this change just for their account. For instance let's assume that user weaver has a local directory in /local/weaver. Then that user could create a ~/.cxoffice/cxoffice.conf file containing the following lines:

[EnvironmentVariables]
"CX_BOTTLE_DIR"="/local/weaver"

Furthermore, if they already have a bottle, they could move it to the new location by doing:

$ mv "~/.cxoffice/bottlename" /local/weaver