From 6d797496979ad58f656d3bbddfff8368e7d4e540 Mon Sep 17 00:00:00 2001 From: Tulili Date: Wed, 26 Jul 2023 02:00:28 -0400 Subject: [PATCH] fix: steam not running via flatpak if it exists --- usr/bin/steam-session | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr/bin/steam-session b/usr/bin/steam-session index a5d41b2a5d..137487007a 100755 --- a/usr/bin/steam-session +++ b/usr/bin/steam-session @@ -1,4 +1,9 @@ #!/bin/sh mutter --wayland & sleep 5 -/usr/bin/steam -gamepadui -tenfoot -fulldesktopres -pipewire-dmabuf + +if [[ $(distrobox list | grep gamebox) || ! $(flatpak list --app --user --columns=application | grep com.valve) ]]; then + /usr/bin/steam -gamepadui -tenfoot -fulldesktopres -pipewire-dmabuf +else + flatpak run com.valvesoftware.Steam -gamepadui -tenfoot -fulldesktopres -pipewire-dmabuf +fi