From f17fc66ac4a724259701e2a4fdacd0743140fc7e Mon Sep 17 00:00:00 2001
From: Aminda Suomalainen <suomalainen@aminda.eu>
Date: Fri, 6 Jun 2025 08:33:59 +0300
Subject: [PATCH] flatpak-workarounds.bash: Steam Proton GE for Heroic
 (unsupported)

---
 bash/flatpak-workarounds.bash | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bash/flatpak-workarounds.bash b/bash/flatpak-workarounds.bash
index 5e04089..ed96c21 100755
--- a/bash/flatpak-workarounds.bash
+++ b/bash/flatpak-workarounds.bash
@@ -96,6 +96,11 @@ flatpak override com.valvesoftware.Steam --filesystem=~/SteamLibrary:create $@
 flatpak override net.lutris.Lutris --filesystem=~/SteamLibrary:create $@
 flatpak override com.heroicgameslauncher.hgl --filesystem=~/SteamLibrary:create $@
 
+# Steam's Proton-GE (flatpak). Not supported. Via https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/issues/309#issuecomment-2746256940
+# Add /var/lib/flatpak/runtime/com.valvesoftware.Steam.CompatibilityTool.Proton-GE/$(uname -m)/stable/active/files/proton
+# as a custom proton
+flatpak override com.heroicgameslauncher.hgl --filesystem=/var/lib/flatpak/runtime/com.valvesoftware.Steam.CompatibilityTool.Proton-GE/$(uname -m)/stable $@
+
 # My Steam Deck laziness. My systemd units check for /var/ and Steam checks
 # free space based on top level directory so it has to be a subdirectory
 # and while the mount point may be /var/sdcard I don't want to give it