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
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.