this post was submitted on 30 Jun 2023
1 points (100.0% liked)

Linux Gaming

15797 readers
21 users here now

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.

founded 4 years ago
MODERATORS
 

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!

you are viewing a single comment's thread
view the rest of the comments
[–] SuperiorOne@lemmy.ml 1 points 1 year ago

If you already use gamemode it has custom section in gamemode.ini file to execute custom scripts before and after game sessions. You simply use gamemoderun %command% as launch option for all of your games.

Another option is directly chaining your scripts with %command% but your mileage may vary.

I was able to log game start and end with this naive launch option.

echo "start" >> ~/Desktop/test.txt && %command% && echo "end" >> ~/Desktop/test.txt