Files
hydro-os/files/system/usr/bin/gamescope-session

19 lines
559 B
Bash

#!/bin/bash
# Assume that MangoHud is not installed
MANGOAPP_FLAG=""
# Check that mangoapp is available. Set the flag if it exists,
# otherwise inform to check that MangoHud is installed and
# proceed without the flag.
if command -v mangoapp &> /dev/null;
then
MANGOAPP_FLAG="--mangoapp"
else
printf "[%s] [Info] 'mangoapp' is not available on your system. Check to see that MangoHud is installed.\n" $0
printf "[%s] [Info] Continuing without the '--mangoapp' flag.\n" $0
fi
gamescope \
$MANGOAPP_FLAG \
-e -- steam -steamdeck -steamos3