From 9c2f75f7f2526e7f1c71f161795e33fa9115ed42 Mon Sep 17 00:00:00 2001 From: The412Banner Date: Fri, 2 Oct 2026 18:45:28 -0400 Subject: [PATCH] session: hand the running client a steam:// URL from the launch dir A URL written to $BL_LAUNCH_DIR/steam-url goes to the running client, as the stop request does: a game can be started (steam://rungameid/...) without touching the screen, for either client. --- .../linuxfs/overlay/usr/local/bin/bannerlator-session | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/linuxfs/overlay/usr/local/bin/bannerlator-session b/tools/linuxfs/overlay/usr/local/bin/bannerlator-session index d055ff1eb..b9647de29 100755 --- a/tools/linuxfs/overlay/usr/local/bin/bannerlator-session +++ b/tools/linuxfs/overlay/usr/local/bin/bannerlator-session @@ -747,6 +747,16 @@ BUSCONF rm -f "$BL_LAUNCH_DIR/steam-stop" ( while :; do + # A steam:// URL left in $BL_LAUNCH_DIR/steam-url is handed to the running client (the + # client binary started with a URL passes it on and exits): how a game is started, or + # anything else the client takes a URL for, without touching the screen. + if [ -s "$BL_LAUNCH_DIR/steam-url" ]; then + _bl_req=$(head -n 1 "$BL_LAUNCH_DIR/steam-url") + rm -f "$BL_LAUNCH_DIR/steam-url" + case $_bl_req in + steam://*) echo "== steam: handing the client $_bl_req"; "${steam_client[@]}" "$_bl_req" >/dev/null 2>&1 & ;; + esac + fi if [ -e "$BL_LAUNCH_DIR/steam-stop" ]; then rm -f "$BL_LAUNCH_DIR/steam-stop" : > "$HOME/.bl-stop-requested"