So i started using ludusavi and i really like it! I can just dump all my saves onto my NAS and i’m good to go.

I now made two .sh files, one for ludusavi restore --force and one for ludusavi backup --force I made the global Lutris setting to exectute the restore BEFORE launching a game and backup AFTER exiting.

This should then give me a steamcloud like automatism where my savegames would be always on the newest version regardless on what PC i played on last time.

But this only works if i play them via Lutris. I have a steamdeck and a minipc with chimeraOS (steam gamepadui per default). I start the games via steam there, not lutris… does anyone know of some possibility to globally start a script or command before starting and another one after exiting the game in steam?

Because i have quite the few non-steam games in my library and also have all my emulated games in there.

That would be fantastic!

I don’t remember the file specifically, but steam uses a script to launch games if I remember correctly. That script sets up some library paths and other stuff that’s needed, I remember editing that script a long while back to include either prime-run or gamemode, but I couldn’t find any references to that script on Google, whenever I’m on the computer I’ll try to find it.

Edit: I think the file is ~/.steam/debian-installation/ubuntu12_32/steam-runtime/run.sh or similar, look for a run.sh in some of the steam runtimes.

RandomLegend [He/Him]
creator
link
fedilink
01Y

Heyho,

thanks! I found the script but tbh it’s a bit over my head^^ But the solution presented by @neoney@lemmy.neoney.dev is good enough for me…yes i do have to set it up manually for each game but it works reliably and is a simple copy&paste process where i just go through my games while watching something on youtube 😀

Just modify the script, right near the end where it says exec "$@", and add one line before to do anything before launching the game and one after to do anything after, e.g.

ludosavi restore --force
exec "$@"
ludosavi backup --force

If you do it per game you can write ludosavi restore --force && %command% && ludosavi backup --force which should execute the commands before and after the game.

RandomLegend [He/Him]
creator
link
fedilink
11Y

Thanks i’ll give it a try then!

yeah the command to do that per game i figured out already, thanks again

Create a post

Gaming on the GNU/Linux operating system.

Recommended news sources:

Related chat:

Related Communities:

Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.

  • 0 users online
  • 18 users / day
  • 139 users / week
  • 381 users / month
  • 1.43K users / 6 months
  • 1 subscriber
  • 864 Posts
  • 9.23K Comments
  • Modlog