You can use bubblewrap (its CLI name is bwrap
) to make an arbitrary directory as $HOME
for a specific program session. Basically, you can bind or set any environment variable you need for that particular program. I recommend checking out the arch wiki on this topic.
For example: bwrap --dev-bind / / --bind $HOME/your/dir/path $HOME <your_program>
. This will let <your_program>
have access to /
and device permissions, with $HOME/your/dir/path
serving as its $HOME
.
My lazy ass decided to just go with the copied title generated by Lemmy when making the post. I edited the title, thanks for mentioning that!
Archive link: Publishers Sue Google over Pirate Sites
Fixed.
Edit: The new link of the post works but I think providing an archive link would be more sufficient.
I haven’t come across any information regarding the automatic aspect, and I don’t have any personal experience with
bubblejail
either. However,bubblejail
is mentioned on the arch wiki. It might be the closest match in this case, so you could give it a try.