Prevent wine from putting it's garbage in your $HOME

Posted: 522 days ago | Tags: ,

“Recently” Windows application and games have figured out that it’s awesome to place files and folder outside of their install location. They also do this without providing you with a way to change these locations.

Windows games these days seem to be placing their save game files and settings in a folder in “My Documents”. Sadly, Wine sets “My Documents” to ~ by default. This means that the output from `ls` looks something like this:

backup
Borderlands
dev
images
Max Payne 2 Saved Games
Max Payne Saved Games
memory
Star Craft II
Star Craft II Beta
tmp
usr

Luckily, we can easily change this with `winecfg` (or manually for that matter):

  1. Fire up `winecfg` and go to Desktop Integration.
  2. Select the folder and uncheck link to/change its path.
  3. Repeat until satisfied.
  4. Move old folders and files to their new location.

You can also change this manually:

  1. `cd ~/.wine/drive_c/users/${USER}`
  2. Change the respective folders as you’d like.
  3. Move old folders and files to their new location.