Adding script before Steam game execution crashes game

I've attached the output when running steam from the cli to get the logs. There is one [Error], and I also see that for some reason my integrated GPU appears to have been selected?? I don't know if this is accurate though, because the game does not run better without gamescope, so I assume it switches back later in the process.

Here is the script I'm attempting to run:
#!/usr/bin/env bash
reset_policy() {
    kscreen-doctor output.2.vrrpolicy.automatic
    notify-send "VRR Policy set to Automatic"
}
trap reset_policy EXIT
  kscreen-doctor output.2.vrrpolicy.never
  notify-send "VRR Policy set to Never"
$@


This script does work with vkcube so it has something specifically to do with Steam for whatever reason
Was this page helpful?