#!/usr/bin/bash
# Helper script to launch games with gamemode

# Path to install gamemoded auto script
CONFIG_LIB_DIR="/usr/lib64/libgamemodeauto.so.0"

# Set the ld preload path prefixed libgamemodeauto
export LD_PRELOAD="${CONFIG_LIB_DIR}${LD_PRELOAD:+:$LD_PRELOAD}"

# Launch
exec "$@"
