ludusavi icon indicating copy to clipboard operation
ludusavi copied to clipboard

Support complex Wine prefixes across installs

Open danepowell opened this issue 5 months ago • 0 comments

What's your idea?

The current system of redirects works well if only the portion of a game path before the game itself varies across installs. For instance, if a path is /home/dane/game-foo/saves on one machine and /home/deck/game-foo/saves on another, redirects can easily handle that.

However, redirects do not help if a portion of the path after the game directory varies. For instance, Wine may create paths like this on two machines:

  • /home/dane/game-foo/drive_c/users/dane/saves
  • /home/deck/game-foo/drive_c/users/deck/saves

The only way to accommodate this today would be to have a separate redirect for every game / wine prefix.

A better solution might be for redirects to support regexes with capture groups as described here: https://github.com/mtkennerly/ludusavi/issues/194#issuecomment-1902637860

danepowell avatar Jan 22 '24 22:01 danepowell