From a65f19998023c792b699b63ab49656d86a63d670 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Fri, 19 Jul 2024 16:06:05 -0700 Subject: [PATCH] Add support for switcheroo --- usr/share/gamescope-session-plus/gamescope-session-plus | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/share/gamescope-session-plus/gamescope-session-plus b/usr/share/gamescope-session-plus/gamescope-session-plus index c333ff4..ccdc3ed 100755 --- a/usr/share/gamescope-session-plus/gamescope-session-plus +++ b/usr/share/gamescope-session-plus/gamescope-session-plus @@ -319,8 +319,8 @@ if [ -n "$STEAMCMD" ]; then CLIENTCMD=$STEAMCMD fi -# Start client application -$CLIENTCMD >"${HOME}/.${CLIENT}-stdout.log" 2>&1 +# Start client application with switcheroo to ensure it's on the correct GPU +switcherooctl launch $CLIENTCMD >"${HOME}/.${CLIENT}-stdout.log" 2>&1 if [[ "$SECONDS" -lt "$short_session_duration" ]]; then echo "${CLIENT} failed" >>"$short_session_tracker_file"