retroarch-snap
retroarch-snap copied to clipboard
Regarding `.config/retroarch` directory location
Hi there, I was noticing every update was taking a long, long time for me (more than 20 min) and it was because it had to copy my .config/retroarch directory from my old install to the new, and I had more than 7 GB of data (most of which thumbnails).
This made me realize, shouldn't this directory be located in the common directory instead of being copied over for every update and even be duplicated in the backup install directories?
Hmm, yeah, that's not good. I've had some issues with shaders doing the same thing, but thumbnail archives are much more serious.
Looks like COMMON is root-owned, so probably not what we would want, but SNAP_USER_COMMON may do the trick (https://snapcraft.io/docs/environment-variables). It looks like I can probably replace my goofy relative path to home with SNAP_REAL_HOME, too...
If I make these changes, would you mind giving it a shot in edge channel?
EDIT: just committed those changes: https://github.com/libretro/retroarch-snap/commit/1adcbdd2e376f82755013a700bffb99836c81237 and triggered a new build, so it should be up to the edge channel soon.
Sure, as soon as I get an update I'll test it out :)
What was the change supposed to do?
I returned all paths to default on Retroarch. In the config file they're all routed to ~/.config/retroarch/, and in Retroarch's UI it shows the path to home/USER/snap/retroarch/899/.config/retroarch.
Before that, I had moved this directory from ~/snap/retroarch/VERSION to ~/snap/retroarch/common. Other snaps such as Yuzu and Dolphin use this common directory.
Edit: Sorry, yes, now I red the docs and saw your changes. They seem to be correct, but yet the default directories aren't redirecting to SNAP_USER_COMMON.