Those are not fixed locations. You'd have to cope with responding to the settings (that may differ per process) that govern their location. In addition the ~/snap directory is very explicitly, and non-trivially baked into apparmor profiles that are currently global to the system. This setting can vary per user. Lastly .config and .local and .cache are just top-level directories with absolutely no structure inside. Where do you put the per-snap $HOME? Is there a connection between a random dot-file like .vim or .vimrc that the snap writes to, relative to $HOME to .local or .config?
All nice solutions have the fatal flaw of being entirely unrealistic in practice.
Those are not fixed locations. You'd have to cope with responding to the settings (that may differ per process) that govern their location. In addition the ~/snap directory is very explicitly, and non-trivially baked into apparmor profiles that are currently global to the system. This setting can vary per user. Lastly .config and .local and .cache are just top-level directories with absolutely no structure inside. Where do you put the per-snap $HOME? Is there a connection between a random dot-file like .vim or .vimrc that the snap writes to, relative to $HOME to .local or .config?
All nice solutions have the fatal flaw of being entirely unrealistic in practice.