this post was submitted on 03 Feb 2024
990 points (98.3% liked)

linuxmemes

20483 readers
1093 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 25 points 6 months ago (2 children)

In theory this issue can be solved with LD_PRELOAD trick. E.g. redirect all/most/some fopen calls to "$HOME" to some other directory. But before I try to tackle it myself: is there already a similar solution like that?

[–] [email protected] 4 points 6 months ago (1 children)

You could probably do it with bubblewrap or something equivalent. Here's someone asking about this exact thing:

https://unix.stackexchange.com/questions/651788/redirect-single-file-or-directory-using-bubblewrap

[–] [email protected] 1 points 6 months ago

I do it with Bubblejail for Steam and a symlink to .local/share/Steam for compatibility with tools.