mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +00:00
The client already writes one menu entry per installed game (steam steam://rungameid/<id>, with the game's icon); they were dead for want of a steam command, and r45 added a second entry per game beside them. Now: steam on the desktop is a shim that hands off to bannerlator-steam-launch (and is the client itself anywhere else), and bannerlator-desktop-games writes an entry only for a game the client wrote none for.
13 lines
635 B
Bash
Executable File
13 lines
635 B
Bash
Executable File
#!/bin/bash
|
|
# `steam` on the desktop. The client writes a menu entry per installed game that runs
|
|
# `steam steam://rungameid/<id>`, and its own launchers say `steam`; neither can run the client
|
|
# here (no dma-buf on the desktop), so on the desktop this hands off to the app for a Steam session
|
|
# in the client's desktop UI under gamescope. Anywhere else it is the client itself.
|
|
set -u
|
|
if [ "${BL_DESKTOP:-}" = 1 ]; then
|
|
url=
|
|
for arg in "$@"; do case $arg in steam://*) url=$arg ;; esac; done
|
|
exec /usr/local/bin/bannerlator-steam-launch desktop ${url:+"$url"}
|
|
fi
|
|
exec "${HOME:-/root}/.local/share/Steam/steamrtarm64/steam" "$@"
|