retroarch-snap icon indicating copy to clipboard operation
retroarch-snap copied to clipboard

Regarding `.config/retroarch` directory location

Open joaorb64 opened this issue 4 years ago • 3 comments

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?

joaorb64 avatar Oct 21 '21 11:10 joaorb64

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.

hizzlekizzle avatar Oct 21 '21 17:10 hizzlekizzle

Sure, as soon as I get an update I'll test it out :)

joaorb64 avatar Oct 21 '21 18:10 joaorb64

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.

joaorb64 avatar Oct 21 '21 19:10 joaorb64