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.
This commit is contained in:
The412Banner committed 2026-10-02 18:45:28 -04:00
1 parent 48a1a4517a
commit 9c2f75f7f2
1 file changed
+10
@@ -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"