this post was submitted on 30 Jun 2023
1 points (100.0% liked)
Linux Gaming
15490 readers
18 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
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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 arun.sh
in some of the steam runtimes.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.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.Thanks i'll give it a try then!
yeah the command to do that per game i figured out already, thanks again