fix(steamvr): Quest library Play installs SteamVR through the app and logs the launch

This commit is contained in:
The412Banner committed 2026-11-29 20:23:00 +00:00
1 parent 678057d727
commit 36ebd41cb3
11 files changed
+104 -17

No files matched your search

@@ -546,10 +546,10 @@ VR_JS = r"""
def launch_steamvr():
say("SteamVR library launch: using the DroidDeck ARM64 helper")
state = os.path.join(os.environ.get("XDG_RUNTIME_DIR", "/tmp"), "droiddeck-steamvr")
logs = os.path.join(os.path.expanduser("~"), ".local/share/Steam/logs")
try:
os.makedirs(state, exist_ok=True)
with open(os.path.join(state, "library-launch.log"), "a") as log:
os.makedirs(logs, exist_ok=True)
with open(os.path.join(logs, "droiddeck-steamvr-launch.log"), "a") as log:
return subprocess.Popen([VR_HELPER, "launch"], stdin=subprocess.DEVNULL,
stdout=log, stderr=subprocess.STDOUT, start_new_session=True)
except OSError as e:
@@ -103,15 +103,15 @@ case "${1:-status}" in
launch)
exec 8>"$state/launch.lock"
flock -n 8 || exit 0
if [ -f "$state/quest-immersive" ]; then
: > "$state/xr-request"
echo "asked DroidDeck to install SteamVR if needed and open the Quest's immersive view"
exit 0
fi
if ! installed; then
"$0" install || exit $?
while [ -f "$state/installing" ]; do sleep 1; done
fi
if [ -f "$state/quest-immersive" ]; then
: > "$state/xr-request"
echo "asked DroidDeck to open the Quest's immersive view, which starts SteamVR"
exit 0
fi
"$0" start
;;
status)