Have you tried the export HOME before installing the game, or just before starting it?
Its possible that wineprefix already has symlinks pointing to your old $HOME created during game installation.
The most recent attemp is that, using
export HOME=/me/fakehomebefore steam is launched. This makes several game using the fakehome folder as its home, but there are many games (e.g., Factorio, Feud) which still write~/.factorioor~/.prefrather than/me/fakehome/*
My hunch for those is that they are guessing your home location based on the username.
Think something like:
factorio_dir=/home/$USER/.factorio
Instead of:
factorio_dir=$HOME/.factorio
Maybe you can trick it into behaving correctly by manipulating the USER environment variable.
Maybe with USER=../../me/fakehome :rofl:
In dota this is possible using PRESSURE_VESSEL_SHARE_HOME=0 in the launch options.
Nothing extracted yet.
Your system information
Please describe your issue in as much detail as possible:
I want to isolate the game from my $HOME folder, enforce them using a new home folder, I make several attempts, all of them either have some shortcoming or failed to execute.
I have noticed that, steam have some sandbox tools, but I don't know how to use them.
Steps for reproducing this issue:
The most recent attemp is that, using
export HOME=/me/fakehomebefore steam is launched.This makes several game using the fakehome folder as its home, but there are many games (e.g., Factorio, Feud) which still write
~/.factorioor~/.prefrather than/me/fakehome/*I also tried
export PRESSURE_VESSEL_HOME=/me/fakehome, wish the pressure-vessel-wrap could using the new home rather than the real home, but it also fails.Factoriostill tried to access myHOMEfolder.An ancient attempt is that, using sandboxes like
bubblewrapto isolate the steam client, but it have a disadvantage:I have a program which use
nvmllibrary to tuning the mem frequency and gpu clock while playing games.This program have a suid bit which grants the ability to control the graphical cards. Unfortuantely, bubblewrap erase the owner to nobody, thus the program become a normal program, could no longer tuning the gpu clocks.