I have got a wine installtion with a couple of games, most of which work fabulously. However, wine creates directories in my home for the player data, saves, etc.
Is there a way to have those in ~/.winesaves or something similar? I would prefer wine not littering my home directory.
(wine: 1.5.27, game in question was SCII and DE:IW)
edit to clarify:
Everything in ~/.wine is fine and good, but I don't want applications to create ~/GameSaves or the likes.
Best Answer
You may need to experiment with the
sandbox
option present inwinetricks
, which may help you as all theWine
symlinks to$HOME
are removed when that setting is applied to the default WINEPREFIX withwinetricks sandbox
.However,
wine
still has your user's permissions in the home folder, and often when installing a new program, an action in the installation can trigger the sandbox to be removed. So it is not really a true 'sandbox' at all, but it may be helpful for your use case.At the official wine FAQ it is noted that:
On the official winetricks page, it is explained that
Important notes
The wine sandbox option will likely need to be used repeatedly, i.e. include it in a launcher script that runs
winetricks sandbox
and then launches your game, as a number of things inwine
can trigger the rebuilding of the symlinks.The folder of saves you have already generated will need to be moved to your WINEPREFIX, e.g
/home/$USER/.wine/drive_c/users/$USER/"My Documents"
in order for you to resume your game. Ifwine
has just created a folder called~/gamesaves
, simply move that folder to the location mentioned above. Otherwise, observe the directory structure; if a game save folder is~/Documents/Syberia/save
make sure you create an equivalent in/home/$USER/.wine/drive_c/users/$USER/"My Documents"
.When you install a game in the future, make sure you run
winetricks sandbox
at the start, so that the game will automatically start using your WINEPREFIX as the save location, and not a folder in your$HOME
.